130. Class

130.1. Zend\Authentication\Result

130.1.1. Methods

130.1.1.1. __construct

__construct()

Sets the result code, identity, and failure messages

Parameters:
  • int
  • mixed
  • array

130.1.1.2. isValid

isValid()

Returns whether the result represents a successful authentication attempt

Return type:bool

130.1.1.3. getCode

getCode()

getCode() - Get the result code for this authentication attempt

Return type:int

130.1.1.4. getIdentity

getIdentity()

Returns the identity used in the authentication attempt

Return type:mixed

130.1.1.5. getMessages

getMessages()

Returns an array of string reasons why the authentication attempt was unsuccessful

If authentication was successful, this method returns an empty array.

Return type:array

130.1.2. Constants

130.1.2.1. FAILURE

General Failure

130.1.2.2. FAILURE_IDENTITY_NOT_FOUND

Failure due to identity not being found.

130.1.2.3. FAILURE_IDENTITY_AMBIGUOUS

Failure due to identity being ambiguous.

130.1.2.4. FAILURE_CREDENTIAL_INVALID

Failure due to invalid credential being supplied.

130.1.2.5. FAILURE_UNCATEGORIZED

Failure due to uncategorized reasons.

130.1.2.6. SUCCESS

Authentication success.