private function checkLimits(Time $time) { return !($this->min && $this->min->toSeconds() > $time->toSeconds()) && !($this->max && $this->max->toSeconds() < $time->toSeconds()); }