ReEncodedFile
in package
implements
File
FinalYes
Table of Contents
Interfaces
- File
Properties
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
$contents read-only
private
UnicodeString
$contents
$path read-only
private
string
$path
Methods
__construct()
public
__construct(string $path, UnicodeString $contents) : mixed
Parameters
- $path : string
- $contents : UnicodeString
getContents()
Returns the content of the file as a string.
public
getContents() : string
Return values
stringmd5()
Returns md5 hash of the file.
public
md5() : string
Return values
stringpath()
Returns an relative path to the file.
public
path() : string