PHP Class Metaphore\Value

Afficher le fichier Open project: sobstel/metaphore Class Usage Examples

Protected Properties

Свойство Type Description
$expirationTimestamp * @var int
$result * @var mixed

Méthodes publiques

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

Method Details

__construct() public méthode

public __construct ( $result, $expirationTimestamp )

__toString() public méthode

public __toString ( )

getResult() public méthode

public getResult ( ) : mixed
Résultat mixed

hasResult() public méthode

public hasResult ( ) : boolean
Résultat boolean

isStale() public méthode

public isStale ( $nowTimestamp = null )

Property Details

$expirationTimestamp protected_oe property

* @var int
protected $expirationTimestamp

$result protected_oe property

* @var mixed
protected $result