<?php

declare(strict_types=1);

namespace App\Administration\Application\Query\GetPeriods;

/**
 * DTO encapsulant la configuration complète des périodes.
 */
final readonly class PeriodsResultDto
{
    /**
     * @param PeriodDto[] $periods
     */
    public function __construct(
        public string $type,
        public array $periods,
        public ?PeriodDto $currentPeriod,
    ) {
    }
}
