getExpiration() публичный Метод

Returns the record's expiration timestamp or false if no expiration timestamp is set
public getExpiration ( ) : DateTime
Результат DateTime
Пример #1
0
 /**
  * {@inheritdoc}
  */
 public function acquireToken($duration = NULL, $force = FALSE)
 {
     $token = $this->tokenCache->get();
     if ($force || !$token || $this->tokenCache->isMiss() || $this->tokenCache->getExpiration()->getTimestamp() <= time() + $duration) {
         if ($token) {
             $this->signOut();
         }
         $token = $this->signIn();
     }
     return $token;
 }