Class

Symfony\Component\Finder\SplFileInfo

class SplFileInfo extends SplFileInfo

Extends \SplFileInfo to support relative paths

Methods

__construct(string $file, string $relativePath, string $relativePathname)

Constructor

string getRelativePath()

Returns the relative path

string getRelativePathname()

Returns the relative path name

string getContents()

Returns the contents of the file

Details

at line 31
public __construct(string $file, string $relativePath, string $relativePathname)

Constructor

Parameters

string $file The file name
string $relativePath The relative path
string $relativePathname The relative path name

at line 43
public string getRelativePath()

Returns the relative path

Return Value

string the relative path

at line 53
public string getRelativePathname()

Returns the relative path name

Return Value

string the relative path name

at line 65
public string getContents()

Returns the contents of the file

Return Value

string the contents of the file

Exceptions

RuntimeException