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
10use App\Models\ApiKey;
11
12class LegacyApiKeyTransformer extends TransformerAbstract
13{
14 public function transform(ApiKey $legacyApi): array
15 {
16 return [
17 'api_key' => $legacyApi->api_key,
18 'app_name' => $legacyApi->app_name,
19 'app_url' => $legacyApi->app_url,
20 ];
21 }
22}