FlySystemFile implements File
FinalYes
Table of Contents
Interfaces
- File
 
Properties
- $fileName : string
 - $fileSystem : FilesystemInterface
 
Methods
- __construct() : mixed
 - getContents() : string
 - Returns the content of the file as a string.
 - md5() : string
 - Returns md5 hash of the file.
 - path() : string
 - Returns an relative path to the file.
 
Properties
$fileName read-only
        private
            string
    $fileName
    
    
    
    
    
    
$fileSystem read-only
        private
            FilesystemInterface
    $fileSystem
    
    
    
    
    
    
Methods
__construct()
    public
                    __construct(FilesystemInterface $fileSystem, string $fileName) : mixed
    Parameters
- $fileSystem : FilesystemInterface
 - $fileName : string
 
getContents()
Returns the content of the file as a string.
    public
                    getContents() : string
    Tags
Return values
stringmd5()
Returns md5 hash of the file.
    public
                    md5() : string
    Tags
Return values
stringpath()
Returns an relative path to the file.
    public
                    path() : string