<?php declare(strict_types=1);
/**
 * This file is part of the SplendidBear Websites' projects.
 *
 * Copyright (c) 2026 @ www.splendidbear.org
 *
 * For the full copyright and license information, please view the LICENSE
 * file that was distributed with this source code.
 */

namespace App\Dto;

use JsonSerializable;

/**
 * Class ProfileChartDataDto
 *
 * @package  App\Dto
 * @author   Lang <https://www.splendidbear.org>
 * @category Class
 * @license  https://www.gnu.org/licenses/lgpl-3.0.en.html GNU Lesser General Public License
 * @link     www.splendidbear.org
 * @since    2026. 04. 20.
 */
final readonly class ProfileChartDataDto implements JsonSerializable
{
    public function __construct(
        public array $months,
        public array $wins,
        public array $losses,
        public array $draws,
        public int   $pieWins,
        public int   $pieLosses,
        public int   $pieDraws,
        public array $recentGames,
    ) {
    }

    public function jsonSerialize(): array
    {
        return get_object_vars($this);
    }
}
