class FileResource implements ResourceInterface, Serializable
FileResource represents a resource stored on the filesystem.
The resource can be a file or a directory.
Methods
|
__construct(string $resource)
Constructor. |
||
| string |
__toString()
Returns a string representation of the Resource. |
|
| mixed |
getResource()
Returns the resource tied to this Resource. |
|
| Boolean |
isFresh(integer $timestamp)
Returns true if the resource has not been updated since the given timestamp. |
|
| serialize() | ||
| unserialize($serialized) |
Details
at line 30
public
__construct(string $resource)
Constructor.
at line 40
public string
__toString()
Returns a string representation of the Resource.
at line 50
public mixed
getResource()
Returns the resource tied to this Resource.
at line 62
public Boolean
isFresh(integer $timestamp)
Returns true if the resource has not been updated since the given timestamp.