\Symfony\Component\FinderSplFileInfo

Extends \SplFileInfo to support relative paths.

Summary

Methods
Properties
Constants
__construct()
getRelativePath()
getRelativePathname()
getContents()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
$relativePath
$relativePathname
N/A

Properties

$relativePath

$relativePath : 

Type

$relativePathname

$relativePathname : 

Type

Methods

__construct()

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

Parameters

string $file

The file name

string $relativePath

The relative path

string $relativePathname

The relative path name

getRelativePath()

getRelativePath() : string

Returns the relative path.

This path does not contain the file name.

Returns

string —

the relative path

getRelativePathname()

getRelativePathname() : string

Returns the relative path name.

This path contains the file name.

Returns

string —

the relative path name

getContents()

getContents() : string

Returns the contents of the file.

Throws

\RuntimeException

Returns

string —

the contents of the file