PHP Class Metaphore\Value

ファイルを表示 Open project: sobstel/metaphore Class Usage Examples

Protected Properties

Property Type Description
$expirationTimestamp * @var int
$result * @var mixed

Public Methods

Method Description
__construct ( $result, $expirationTimestamp )
__toString ( )
getResult ( ) : mixed
hasResult ( ) : boolean
isStale ( $nowTimestamp = null )

Method Details

__construct() public method

public __construct ( $result, $expirationTimestamp )

__toString() public method

public __toString ( )

getResult() public method

public getResult ( ) : mixed
return mixed

hasResult() public method

public hasResult ( ) : boolean
return boolean

isStale() public method

public isStale ( $nowTimestamp = null )

Property Details

$expirationTimestamp protected_oe property

* @var int
protected $expirationTimestamp

$result protected_oe property

* @var mixed
protected $result