private function resolveObject($code)
    {
        $value = $this->resolveCode($code);

        if (!\is_object($value)) {
            throw new RuntimeException('Unable to inspect a non-object');
        }

        return $value;
    }
private function resolveObject($code)
    {
        $value = $this->resolveCode($code);

        if (!\is_object($value)) {
            throw new RuntimeException('Unable to inspect a non-object');
        }

        return $value;
    }
private function resolveObject ( $ code ) { $ value = $ this -> resolveCode ( $ code ) ; if ( ! \ is_object ( $ value ) ) { throw new RuntimeException ( 'Unable to inspect a non-object' ) ; } return $ value ; }
Resolve code to an object in the current scope.

@throws RuntimeException when the code resolves to a non-object value

@param string $code

@return object Variable instance
Resolve code to an object in the current scope .