public function __construct($authenticated, $message = null, $code = null) { $this->isAuthenticated = (bool) $authenticated; $this->errorMessage = $message; $this->errorCode = $code; }