interface ResourceInterface

ResourceInterface is the interface that must be implemented by all Resource classes.

Methods

string
__toString()

Returns a string representation of the Resource.

Boolean
isFresh(integer $timestamp)

Returns true if the resource has not been updated since the given timestamp.

mixed
getResource()

Returns the resource tied to this Resource.

Details

at line line 26
string __toString()

Returns a string representation of the Resource.

Return Value

string A string representation of the Resource

at line line 35
Boolean isFresh(integer $timestamp)

Returns true if the resource has not been updated since the given timestamp.

Parameters

integer $timestamp The last time the resource was loaded

Return Value

Boolean true if the resource has not been updated, false otherwise

at line line 42
mixed getResource()

Returns the resource tied to this Resource.

Return Value

mixed The resource