IoTrait
    
        
        
    Table of Contents
    
    Methods
    
            - 
    copy()
    
                                 : void    
 
            - 
    persistTo()
    
                                 : void    
 
            - 
    readSourceFile()
    
                                 : string    
 
            - 
    copyDirectory()
    
                                 : void    
 
            - 
    isGlobalTemplateReference()
    
                                 : bool    
 
            - 
    normalizeDestination()
    
                                 : string    
 
            - 
    normalizeSourcePath()
    
                                 : string    
 
            - 
    stripFirstPartOfPath()
    
                                 : string    
 
    
        
        
            
        
                    
    
        copy()
        
    
    
    
    
    protected
                    copy(Transformation $transformation, string $path, string $destination) : void
    
        
    
    
        Parameters
    
                    - 
                $transformation
                : Transformation
                            
 
            - 
                
            
 
                    - 
                $path
                : string
                            
 
            - 
                
            
 
                    - 
                $destination
                : string
                            
 
            - 
                
            
 
            
    
    
    
                    
    
        persistTo()
        
    
    
    
    
    protected
                    persistTo(Transformation $transformation, string $path, string $contents) : void
    
        
    
    
        Parameters
    
                    - 
                $transformation
                : Transformation
                            
 
            - 
                
            
 
                    - 
                $path
                : string
                            
 
            - 
                
            
 
                    - 
                $contents
                : string
                            
 
            - 
                
            
 
            
    
    
    
                    
    
        readSourceFile()
        
    
    
    
    
    protected
                    readSourceFile(Transformation $transformation, string $path) : string
    
        
    
    
        Parameters
    
                    - 
                $transformation
                : Transformation
                            
 
            - 
                
            
 
                    - 
                $path
                : string
                            
 
            - 
                
            
 
            
    
    
            
                    
    
        copyDirectory()
        
    
    
    
    
    private
                    copyDirectory(Transformation $transformation, string $path, string $destination) : void
    
        
    
    
        Parameters
    
                    - 
                $transformation
                : Transformation
                            
 
            - 
                
            
 
                    - 
                $path
                : string
                            
 
            - 
                
            
 
                    - 
                $destination
                : string
                            
 
            - 
                
            
 
            
    
    
    
                    
    
        isGlobalTemplateReference()
        
    
    
    
    
    private
                    isGlobalTemplateReference(string $path) : bool
    
        
    
    
        Parameters
    
                    - 
                $path
                : string
                            
 
            - 
                
            
 
            
    
    
            
                    
    
        normalizeDestination()
        
    
    
    
    
    private
                    normalizeDestination(string $destination) : string
    
        
    
    
        Parameters
    
                    - 
                $destination
                : string
                            
 
            - 
                
            
 
            
    
    
            
                    
    
        normalizeSourcePath()
        
    
    
    
    
    private
                    normalizeSourcePath(string $path) : string
    
        
    
    
        Parameters
    
                    - 
                $path
                : string
                            
 
            - 
                
            
 
            
    
    
            
                    
    
        stripFirstPartOfPath()
        
    
    
    
    
    private
                    stripFirstPartOfPath(string $path) : string
    
        
    
    
        Parameters
    
                    - 
                $path
                : string
                            
 
            -