src/AuthenticationEvent.php
public function setIdentity($identity = null)
    {
        if (null === $identity) {
            $this->setResult();
        }

        $this->setParam('identity', $identity);

        return $this;
    }
public function setIdentity($identity = null)
    {
        if (null === $identity) {
            $this->setResult();
        }

        $this->setParam('identity', $identity);

        return $this;
    }
public function setIdentity ( $ identity = null ) { if ( null === $ identity ) { $ this -> setResult ( ) ; } $ this -> setParam ( 'identity' , $ identity ) ; return $ this ; }
Sets the identity.

@param mixed $identity

@return $this
Sets the identity .