src/AuthenticationService.php
public function getIdentity()
    {
        if ($this->_result === null || !$this->_result->isValid()) {
            return null;
        }

        $identity = $this->_result->getData();
        if (!($identity instanceof IdentityInterface)) {
            $identity = $this->buildIdentity($identity);
        }

        return $identity;
    }
public function getIdentity()
    {
        if ($this->_result === null || !$this->_result->isValid()) {
            return null;
        }

        $identity = $this->_result->getData();
        if (!($identity instanceof IdentityInterface)) {
            $identity = $this->buildIdentity($identity);
        }

        return $identity;
    }
public function getIdentity ( ) { if ( $ this -> _result === null || ! $ this -> _result -> isValid ( ) ) { return null ; } $ identity = $ this -> _result -> getData ( ) ; if ( ! ( $ identity instanceof IdentityInterface ) ) { $ identity = $ this -> buildIdentity ( $ identity ) ; } return $ identity ; }
Gets an identity object

@return null|\Authentication\IdentityInterface
Gets an identity object