You are here

public function SetCookie::isExpired in Lockr 7.3

Check if the cookie is expired

Return value

bool

File

vendor/guzzlehttp/guzzle/src/Cookie/SetCookie.php, line 359

Class

SetCookie
Set-Cookie object

Namespace

GuzzleHttp\Cookie

Code

public function isExpired() {
  return $this
    ->getExpires() !== null && time() > $this
    ->getExpires();
}