src/TimeOverlapCalculator.php
public function isOverlap(TimeSlotInterface $baseTimeSlot, TimeSlotInterface $overlappingTimeSlot)
    {
        return $baseTimeSlot->getStart() < $overlappingTimeSlot->getEnd()
               && $overlappingTimeSlot->getStart() < $baseTimeSlot->getEnd();
    }
public function isOverlap(TimeSlotInterface $baseTimeSlot, TimeSlotInterface $overlappingTimeSlot)
    {
        return $baseTimeSlot->getStart() < $overlappingTimeSlot->getEnd()
               && $overlappingTimeSlot->getStart() < $baseTimeSlot->getEnd();
    }
Check if given time slots overlap

@param TimeSlotInterface $baseTimeSlot
@param TimeSlotInterface $overlappingTimeSlot

@return bool