class SplFileInfo extends SplFileInfo
Extends \SplFileInfo to support relative paths.
__construct(string $file, string $relativePath, string $relativePathname) | ||
string | getRelativePath() Returns the relative path. | |
string | getRelativePathname() Returns the relative path name. | |
string | getContents() Returns the contents of the file. |
string | $file | The file name |
string | $relativePath | The relative path |
string | $relativePathname | The relative path name |
Returns the relative path.
This path does not contain the file name.
string | the relative path |
Returns the relative path name.
This path contains the file name.
string | the relative path name |
Returns the contents of the file.
string | the contents of the file |
RuntimeException |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Component/Finder/SplFileInfo.html