Свойство | Type | Description | |
---|---|---|---|
$resources | array |
Méthode | Description | |
---|---|---|
__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. |
Méthode | Description | |
---|---|---|
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 | |
Résultat |
public setResources ( array $resources ) : void | ||
$resources | array | |
Résultat | void |