the browser-facing portion of osu!
at master 23 lines 567 B view raw
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\Team; 11 12class TeamTransformer extends TransformerAbstract 13{ 14 public function transform(Team $team): array 15 { 16 return [ 17 'id' => $team->getKey(), 18 'logo' => $team->logo()->url(), 19 'name' => $team->name, 20 'short_name' => $team->short_name, 21 ]; 22 } 23}