setValid($valid); $this->setIdentity($identity); $this->setMessages($messages); } /** * * set valid flag * * @param bool $valid */ public function setValid($valid) { $this->_valid = (bool) $valid; } /** * * get identity used * * @return mixed */ public function getIdentity() { return $this->_identity; } /** * * set identity used * * @param mixed $identity */ public function setIdentity($identity) { $this->_identity = $identity; } /** * * get authentication failure messages * * @return array */ public function getMessages() { return $this->_messages; } /** * * set authentication failure messages * * @param mixed $messages */ public function setMessages($messages) { $this->_messages = (array) $messages; } /** * * check whether the authentication attempt was valid or not * * @return bool */ public function isValid() { return (bool) $this->_valid; } }