Documentation

LocalFile
in package
implements File

Represents a local file on the file system.

Interfaces, Classes and Traits

File
Interface for files processed by the ProjectFactory

Table of Contents

$path  : string
Path to the file.
__construct()  : mixed
getContents()  : string
Returns the content of the file as a string.
md5()  : string
Returns md5 hash of the file.
path()  : string
Returns a relative path to the file.

Properties

$path

Path to the file.

private string $path

Methods

__construct()

public __construct(string $path) : mixed
Parameters
$path : string
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 a relative path to the file.

public path() : string
Return values
string

Search results