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