public function __construct(Carbon $startDate, Carbon $endDate) { $this->validatePeriod($startDate, $endDate); $this->startDate = $startDate; $this->endDate = $endDate; }