This commit is contained in:
Alex Bilbie
2014-11-08 16:44:39 +00:00
parent 856051bfb3
commit b9debaab26
7 changed files with 80 additions and 5 deletions

View File

@@ -96,6 +96,15 @@ abstract class AbstractTokenEntity
return $this->expireTime;
}
/**
* Is the token expired?
* @return bool
*/
public function isExpired()
{
return ((time() - $this->expireTime) > 0);
}
/**
* Set token ID
* @param string $token Token ID