public function getDefaultIdentity()
	{
	    if (!$this->defaultIdentity) {
	        $this->defaultIdentity = new ArrayObject(array());

	        if ($this->exists('Identity')) {
	            $responses = $this->execute(
                    'Identity',
                    'getIdentity',
                    array(),
                    function($response){if($response instanceof ArrayAccess) return true;});

	            if (sizeof($responses)) {
	                $this->defaultIdentity = $responses->last();
	            }

	            if ($this->defaultIdentity instanceof \ArrayObject) {
	                $this->defaultIdentity->setFlags(\ArrayObject::ARRAY_AS_PROPS);
	            } elseif(!$this->defaultIdentity) {
	                return new \ArrayObject([]);
	            }
	        }

	    }

	    return $this->defaultIdentity;
	}
public function getDefaultIdentity()
	{
	    if (!$this->defaultIdentity) {
	        $this->defaultIdentity = new ArrayObject(array());

	        if ($this->exists('Identity')) {
	            $responses = $this->execute(
                    'Identity',
                    'getIdentity',
                    array(),
                    function($response){if($response instanceof ArrayAccess) return true;});

	            if (sizeof($responses)) {
	                $this->defaultIdentity = $responses->last();
	            }

	            if ($this->defaultIdentity instanceof \ArrayObject) {
	                $this->defaultIdentity->setFlags(\ArrayObject::ARRAY_AS_PROPS);
	            } elseif(!$this->defaultIdentity) {
	                return new \ArrayObject([]);
	            }
	        }

	    }

	    return $this->defaultIdentity;
	}
public function getDefaultIdentity ( ) { if ( ! $ this -> defaultIdentity ) { $ this -> defaultIdentity = new ArrayObject ( array ( ) ) ; if ( $ this -> exists ( 'Identity' ) ) { $ responses = $ this -> execute ( 'Identity' , 'getIdentity' , array ( ) , function ( $ response ) { if ( $ response instanceof ArrayAccess ) return true ; } ) ; if ( sizeof ( $ responses ) ) { $ this -> defaultIdentity = $ responses -> last ( ) ; } if ( $ this -> defaultIdentity instanceof \ ArrayObject ) { $ this -> defaultIdentity -> setFlags ( \ ArrayObject :: ARRAY_AS_PROPS ) ; } elseif ( ! $ this -> defaultIdentity ) { return new \ ArrayObject ( [ ] ) ; } } } return $ this -> defaultIdentity ; }
Retrieve default identity

@return \ArrayAccess|null
Retrieve default identity