*/ private int $weekday; /** * @var TimeRange[] */ private array $ranges; /** * @param int<0,6> $weekday * @param TimeRange[] $ranges */ public function __construct(int $weekday, array $ranges) { $this->weekday = $weekday; $this->ranges = $ranges; } /** * @return int<0,6> */ public function getWeekday(): int { return $this->weekday; } /** * @return TimeRange[] */ public function getRanges(): array { return $this->ranges; } }