\Symfony\Component\FinderSplFileInfo

Extends \SplFileInfo to support relative paths.

Summary

Methods
Properties
Constants
__construct()
getRelativePath()
getRelativePathname()
getFilenameWithoutExtension()
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

$relativePathname

$relativePathname

Methods

__construct()

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

Parameters

string $file

The file name

string $relativePath

The relative path

string $relativePathname

The relative path name

Returns

mixed —

getRelativePath()

getRelativePath() : string

Returns the relative path.

This path does not contain the file name.

Returns

string —

getRelativePathname()

getRelativePathname() : string

Returns the relative path name.

This path contains the file name.

Returns

string —

getFilenameWithoutExtension()

getFilenameWithoutExtension() : string

Returns

string —

getContents()

getContents() : string

Returns the contents of the file.

Throws

\RuntimeException

Returns

string —