SplFileInfo
extends SplFileInfo
in package
Class \Hoa\Iterator\SplFileInfo.
Enhance SplFileInfo implementation.
Tags
Table of Contents
Properties
- $_hash : string
- Hash.
- $_relativePath : string
- Relative path.
Methods
- __construct() : mixed
- Construct.
- getHash() : string
- Get the hash.
- getMTime() : int
- Get the MTime.
- getRelativePath() : string
- Get relative path (if given).
- getRelativePathname() : string
- Get relative pathname (if possible).
- setRelativePath() : string
- Set relative path.
Properties
$_hash
Hash.
protected
string
$_hash
= null
$_relativePath
Relative path.
protected
string
$_relativePath
= null
Methods
__construct()
Construct.
public
__construct(string $filename[, string $relativePath = null ]) : mixed
Parameters
- $filename : string
-
Filename.
- $relativePath : string = null
-
Relative path.
getHash()
Get the hash.
public
getHash() : string
Return values
stringgetMTime()
Get the MTime.
public
getMTime() : int
Return values
intgetRelativePath()
Get relative path (if given).
public
getRelativePath() : string
Return values
stringgetRelativePathname()
Get relative pathname (if possible).
public
getRelativePathname() : string
Return values
stringsetRelativePath()
Set relative path.
public
setRelativePath(string $relativePath) : string
Parameters
- $relativePath : string
-
Relative path.