function validateToken($p_token) { if ($p_token !== $this->getToken()) { $this->setStatus(EXPIRED); } return true; }