Art4\JsonApiClient\ResourceIdentifierCollection::parseResource PHP Method

parseResource() protected method

Generate a new resource from an object
protected parseResource ( object $data ) : Art4\JsonApiClient\ElementInterface
$data object The resource data
return Art4\JsonApiClient\ElementInterface The resource
    protected function parseResource($data)
    {
        $identifier = $resource = $this->manager->getFactory()->make('ResourceIdentifier', [$this->manager, $this]);
        $identifier->parse($data);
        return $identifier;
    }