protected function _transformResource(Endpoint $endpoint, array $result)
    {
        $properties = [];

        foreach ($result as $property => $value) {
            $properties[$property] = $value;
        }

        return $this->_createResource($endpoint->getResourceClass(), $properties);
    }
protected function _transformResource(Endpoint $endpoint, array $result)
    {
        $properties = [];

        foreach ($result as $property => $value) {
            $properties[$property] = $value;
        }

        return $this->_createResource($endpoint->getResourceClass(), $properties);
    }
protected function _transformResource ( Endpoint $ endpoint , array $ result ) { $ properties = [ ] ; foreach ( $ result as $ property => $ value ) { $ properties [ $ property ] = $ value ; } return $ this -> _createResource ( $ endpoint -> getResourceClass ( ) , $ properties ) ; }
Turns a single result into a resource

@param \Muffin\Webservice\Model\Endpoint $endpoint The endpoint class to use
@param array $result The API result
@return \Muffin\Webservice\Model\Resource
Turns a single result into a resource