protected function _transformResults(Endpoint $endpoint, array $results)
    {
        $resources = [];
        foreach ($results as $result) {
            $resources[] = $this->_transformResource($endpoint, $result);
        }

        return $resources;
    }
protected function _transformResults(Endpoint $endpoint, array $results)
    {
        $resources = [];
        foreach ($results as $result) {
            $resources[] = $this->_transformResource($endpoint, $result);
        }

        return $resources;
    }
protected function _transformResults ( Endpoint $ endpoint , array $ results ) { $ resources = [ ] ; foreach ( $ results as $ result ) { $ resources [ ] = $ this -> _transformResource ( $ endpoint , $ result ) ; } return $ resources ; }
Loops through the results and turns them into resource objects

@param \Muffin\Webservice\Model\Endpoint $endpoint The endpoint class to use
@param array $results Array of results from the API
@return \Muffin\Webservice\Model\Resource[] Array of resource objects
Loops through the results and turns them into resource objects