SplFileInfo (Component\Finder)
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
public __construct(string $file, string $relativePath, string $relativePathname)
Constructor.
public string getRelativePath()
Returns the relative path.
public string getRelativePathname()
Returns the relative path name.
public string getContents()
Returns the contents of the file.
© 2004–2016 Fabien Potencier
Licensed under the MIT License.
http://api.symfony.com/3.0/Symfony/Component/Finder/SplFileInfo.html