FlySystemFile
in package
implements
File
Interfaces, Classes and Traits
- File
- Interface for files processed by the ProjectFactory
Table of Contents
- $fileName : string
- $fileSystem : FilesystemInterface
- __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
private
string
$fileName
$fileSystem
private
FilesystemInterface
$fileSystem
Methods
__construct()
public
__construct(FilesystemInterface $fileSystem, string $fileName) : mixed
Parameters
- $fileSystem : FilesystemInterface
- $fileName : string
Return values
mixed —getContents()
Returns the content of the file as a string.
public
getContents() : string
Tags
Return values
string —md5()
Returns md5 hash of the file.
public
md5() : string
Tags
Return values
string —path()
Returns an relative path to the file.
public
path() : string