\src\Utils\File\FileSystemObject.inc
\Utils\File\FileSystemObject
Package: Default
Parameters
Returns
Returns
Returns
This class represents an abstract object in the file system.
- Implements
- \Utils\File\IFileSystemObject
- Children
- \Utils\File\Directory
- \Utils\File\File
Properties
Methods
__construct(
\SplFileInfo $fileInfo
)
:
void
This method acts as the constructor of the class.
Name | Type | Description |
---|---|---|
$fileInfo | \SplFileInfo | the file information object associated with this file system object |
__toString(
)
:
string
This method returns the string representation of the file system object, i.e. its base name.
Type | Description |
---|---|
string | the base name of the file system object as string |
getBasename(
)
:
string
This method returns the base name of the file system object.
Type | Description |
---|---|
string | the base name of the file system object |
getParent(
)
:
\Utils\File\Directory
This method returns the parent directory of this file system object.
Type | Description |
---|---|
\Utils\File\Directory | the parent directory of this file system object |