Class Symfony\Component\Finder\SplFileInfo

InheritanceSymfony\Component\Finder\SplFileInfo » SplFileInfo

Extends \SplFileInfo to support relative paths.

Public Methods

Hide inherited methods

MethodDescriptionDefined By
__construct() Constructor. Symfony\Component\Finder\SplFileInfo
getContents() Returns the contents of the file. Symfony\Component\Finder\SplFileInfo
getRelativePath() Returns the relative path. Symfony\Component\Finder\SplFileInfo
getRelativePathname() Returns the relative path name. Symfony\Component\Finder\SplFileInfo

Method Details

__construct() public method

Constructor.

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

The file name

$relativePath string

The relative path

$relativePathname string

The relative path name

getContents() public method

Returns the contents of the file.

public string getContents ( )
return string

The contents of the file

throws RuntimeException
getRelativePath() public method

Returns the relative path.

This path does not contain the file name.

public string getRelativePath ( )
return string

The relative path

getRelativePathname() public method

Returns the relative path name.

This path contains the file name.

public string getRelativePathname ( )
return string

The relative path name