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