src/ZfcUser/Authentication/Storage/Db.php
public function read()
    {
        if (null !== $this->resolvedIdentity) {
            return $this->resolvedIdentity;
        }

        $identity = $this->getStorage()->read();

        if (is_int($identity) || is_scalar($identity)) {
            $identity = $this->getMapper()->findById($identity);
        }

        if ($identity) {
            $this->resolvedIdentity = $identity;
        } else {
            $this->resolvedIdentity = null;
        }

        return $this->resolvedIdentity;
    }
public function read()
    {
        if (null !== $this->resolvedIdentity) {
            return $this->resolvedIdentity;
        }

        $identity = $this->getStorage()->read();

        if (is_int($identity) || is_scalar($identity)) {
            $identity = $this->getMapper()->findById($identity);
        }

        if ($identity) {
            $this->resolvedIdentity = $identity;
        } else {
            $this->resolvedIdentity = null;
        }

        return $this->resolvedIdentity;
    }
public function read ( ) { if ( null !== $ this -> resolvedIdentity ) { return $ this -> resolvedIdentity ; } $ identity = $ this -> getStorage ( ) -> read ( ) ; if ( is_int ( $ identity ) || is_scalar ( $ identity ) ) { $ identity = $ this -> getMapper ( ) -> findById ( $ identity ) ; } if ( $ identity ) { $ this -> resolvedIdentity = $ identity ; } else { $ this -> resolvedIdentity = null ; } return $ this -> resolvedIdentity ; }
Returns the contents of storage

Behavior is undefined when storage is empty.

@throws \Zend\Authentication\Exception\InvalidArgumentException If reading contents from storage is impossible
@return mixed
Returns the contents of storage