Total Complexity | 1 |
Total Lines | 31 |
Duplicated Lines | 0 % |
Changes | 3 | ||
Bugs | 2 | Features | 1 |
1 | <?php |
||
9 | class ListPostResourceCollection extends ResourceCollection |
||
10 | { |
||
11 | /** |
||
12 | * The resource that this resource collects. |
||
13 | * |
||
14 | * @var string |
||
15 | */ |
||
16 | public $collects = ListPostResource::class; |
||
17 | |||
18 | /** |
||
19 | * Transform the resource collection into an array. |
||
20 | * |
||
21 | * @param Request $request |
||
22 | * |
||
23 | * @return array<string, mixed> |
||
24 | */ |
||
25 | public function toArray(Request $request): array |
||
44 |