public function clearToken() { setcookie($this->getCookieName(), null, 1, '/'); $this->token = null; }