Bolt\AccessControl\Token\Token::getChecked PHP Method

getChecked() public method

Get time of last check against datebase.
public getChecked ( ) : integer
return integer
    public function getChecked()
    {
        return $this->checked;
    }

Usage Example

Example #1
0
 /**
  * Check the stored session, if we're past expiry then return false
  * regardless and force a check/update from the database authentication
  * record.
  *
  * @param Token\Token $sessionAuth
  *
  * @return boolean
  */
 protected function checkSessionStored(Token\Token $sessionAuth)
 {
     if (time() - $sessionAuth->getChecked() > 600) {
         return false;
     }
     return $this->checkSessionKeys($sessionAuth);
 }