'date', 'type' => WorkDayType::class, 'data_source' => DataSource::class, ]; /** * Meghatározza, hogy az adott nap munkaszüneti nap-e az adatbázis szerint. */ public function isHoliday(): bool { return $this->type === WorkDayType::Holiday; } /** * Meghatározza, hogy az adott nap plusz munkanap-e az adatbázis szerint. */ public function isWorkingDay(): bool { return $this->type === WorkDayType::WorkingDay; } }