Art4\JsonApiClient\ResourceIdentifierCollection::parseResource PHP 메소드

parseResource() 보호된 메소드

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