You are here

public function Cookie::getExpirationTime in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/jcalderonzumba/gastonjs/src/Cookie.php \Zumba\GastonJS\Cookie::getExpirationTime()

Returns cookie expiration time

Return value

mixed

File

vendor/jcalderonzumba/gastonjs/src/Cookie.php, line 72

Class

Cookie
Class Cookie @package Zumba\GastonJS

Namespace

Zumba\GastonJS

Code

public function getExpirationTime() {

  //TODO: return a \DateTime object
  if (isset($this->attributes['expiry'])) {
    return $this->attributes['expiry'];
  }
  return null;
}