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
6declare(strict_types=1);
7
8namespace App\Transformers;
9
10class MenuImageTransformer extends TransformerAbstract
11{
12 public function transform(array $menuImage): array
13 {
14 return [
15 'ended_at' => json_time($menuImage['ended_at']),
16 'image_url' => $menuImage['image_url'],
17 'started_at' => json_time($menuImage['started_at']),
18 'url' => $menuImage['url'],
19 ];
20 }
21}