private function parseResource(&$var, BasicObject $o)
    {
        $resource = new ResourceObject();
        $resource->transplant($o);
        $resource->resource_type = \get_resource_type($var);

        $this->applyPlugins($var, $resource, self::TRIGGER_SUCCESS);

        return $resource;
    }
private function parseResource(&$var, BasicObject $o)
    {
        $resource = new ResourceObject();
        $resource->transplant($o);
        $resource->resource_type = \get_resource_type($var);

        $this->applyPlugins($var, $resource, self::TRIGGER_SUCCESS);

        return $resource;
    }
private function parseResource ( & $ var , BasicObject $ o ) { $ resource = new ResourceObject ( ) ; $ resource -> transplant ( $ o ) ; $ resource -> resource_type = \ get_resource_type ( $ var ) ; $ this -> applyPlugins ( $ var , $ resource , self :: TRIGGER_SUCCESS ) ; return $ resource ; }
Parses a resource into a Kint ResourceObject structure.

@param resource    $var The input variable
@param BasicObject $o   The base object

@return BasicObject
Parses a resource into a Kint ResourceObject structure .