| Total Complexity | 1 |
| Total Lines | 31 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 9 | class ListCommentResourceCollection extends ResourceCollection |
||
| 10 | { |
||
| 11 | /** |
||
| 12 | * The resource that this resource collects. |
||
| 13 | * |
||
| 14 | * @var string |
||
| 15 | */ |
||
| 16 | public $collects = CommentResource::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 |