public function addTimeWindow(TimeWindow $timeWindow) { $this->timeWindows[$timeWindow->generateHash()] = $timeWindow; }