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

No files matched your search

+9
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