Свойство | Тип | Описание | |
---|---|---|---|
$resources | array |
Метод | Описание | |
---|---|---|
__construct ( mixed $data, Tobscure\JsonApi\SerializerInterface $serializer ) | Create a new collection instance. | |
fields ( array | null $fields ) | Request a restricted set of fields. | |
getResources ( ) | ||
identify ( string | array $relationships ) | Request a relationship to be identified for all resources. | |
setResources ( array $resources ) : void | Set the resources array. | |
toArray ( ) | ||
toIdentifier ( ) | ||
with ( string | array $relationships ) | Request a relationship to be included for all resources. |
Метод | Описание | |
---|---|---|
buildResources ( mixed $data, Tobscure\JsonApi\SerializerInterface $serializer ) : |
Convert an array of raw data to Resource objects. |
public __construct ( mixed $data, Tobscure\JsonApi\SerializerInterface $serializer ) | ||
$data | mixed | |
$serializer | Tobscure\JsonApi\SerializerInterface |
protected buildResources ( mixed $data, Tobscure\JsonApi\SerializerInterface $serializer ) : |
||
$data | mixed | |
$serializer | Tobscure\JsonApi\SerializerInterface | |
Результат |
public setResources ( array $resources ) : void | ||
$resources | array | |
Результат | void |