/** * @param AddSegmentsErrors $errors */ private function isStartTimeWithinEpisodeBounds($errors) { $startTime = $this->segment->getStartTime(); if (!TimeValidator::isSegmentWithinEpisodeBounds($startTime, $this->episode)) { $errors->markStartTimeOutOfEpisodeBounds(); } }