public function setAuthenticated($authenticated) { $this->authenticated = (bool) $authenticated; return $this; }