1<?php
2
3// Copyright (c) ppy Pty Ltd <contact@ppy.sh>. Licensed under the GNU Affero General Public License v3.0.
4// See the LICENCE file in the repository root for full licence text.
5
6namespace App\Serializers;
7
8use League\Fractal\Serializer\ArraySerializer;
9
10class ApiSerializer extends ArraySerializer
11{
12 /**
13 * no 'data' root node thx.
14 */
15 public function collection(?string $resourceKey, array $data): array
16 {
17 return $data;
18 }
19}