public function resolve(callable $deserializeCallback = null)
    {
        if (null === $deserializeCallback) {
            $deserializeCallback = function ($data) { return $data; };
        }

        if (null === $this->resolved) {
            $this->resolved = $this->doResolve();
        }

        return $deserializeCallback($this->resolved);
    }
public function resolve(callable $deserializeCallback = null)
    {
        if (null === $deserializeCallback) {
            $deserializeCallback = function ($data) { return $data; };
        }

        if (null === $this->resolved) {
            $this->resolved = $this->doResolve();
        }

        return $deserializeCallback($this->resolved);
    }
public function resolve ( callable $ deserializeCallback = null ) { if ( null === $ deserializeCallback ) { $ deserializeCallback = function ( $ data ) { return $ data ; } ; } if ( null === $ this -> resolved ) { $ this -> resolved = $ this -> doResolve ( ) ; } return $ deserializeCallback ( $ this -> resolved ) ; }
Resolve a JSON Reference.

@param callable $deserializeCallback

@return mixed Return the json value (deserialized) referenced
Resolve a JSON Reference .