. Licensed under the GNU Affero General Public License v3.0. // See the LICENCE file in the repository root for full licence text. declare(strict_types=1); namespace App\Transformers; use App\Models\Team; class TeamTransformer extends TransformerAbstract { public function transform(Team $team): array { return [ 'id' => $team->getKey(), 'logo' => $team->logo()->url(), 'name' => $team->name, 'short_name' => $team->short_name, ]; } }