RawArraySerializer
Class RawArraySerializer
This class is responsible for serializing data in the form of arrays. It extends the ArraySerializer class and provides methods for serializing collections, items, and null values.
- Full name: \Zemit\Fractal\Serializer\RawArraySerializer
- Parent class: ArraySerializer
Methods
collection
{@inheritDoc}
public collection(?string $resourceKey, array $data): array
Parameters:
| Parameter | Type | Description | 
|---|---|---|
| $resourceKey | ?string | |
| $data | array | 
item
{@inheritDoc}
public item(?string $resourceKey, array $data): array
Parameters:
| Parameter | Type | Description | 
|---|---|---|
| $resourceKey | ?string | |
| $data | array | 
null
{@inheritDoc}
public null(): ?array