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
6namespace App\Transformers;
7
8use App\Models\UserMonthlyPlaycount;
9
10class UserMonthlyPlaycountTransformer extends TransformerAbstract
11{
12 public function transform(UserMonthlyPlaycount $playcount)
13 {
14 return [
15 'start_date' => json_date($playcount->startDate()),
16 'count' => $playcount->playcount,
17 ];
18 }
19}