<?php

declare(strict_types=1);

namespace App\DataTransferObjects;

final readonly class GuestStatsData
{
    public function __construct(
        public int $upcomingTrips,
        public int $pastTrips,
        public int $savedProperties,
        public int $totalNightsStayed,
    ) {}

    public function toArray(): array
    {
        return [
            'upcomingTrips' => $this->upcomingTrips,
            'pastTrips' => $this->pastTrips,
            'savedProperties' => $this->savedProperties,
            'totalNightsStayed' => $this->totalNightsStayed,
        ];
    }
}
