the browser-facing portion of osu!
at master 22 lines 557 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\UserCoverPreset; 11 12class UserCoverPresetTransformer extends TransformerAbstract 13{ 14 public function transform(UserCoverPreset $preset) 15 { 16 return [ 17 'active' => $preset->active, 18 'id' => $preset->getKey(), 19 'url' => $preset->file()->url(), 20 ]; 21 } 22}