Ejemplo n.º 1
0
 /**
  * It can show if two timeslot overlap each other.
  *
  * @param TimeSlot $first
  * @param TimeSlot $second
  *
  * @return boolean
  */
 public static function isOverlap(TimeSlot $first, TimeSlot $second)
 {
     return !($first->getStartDate() > $second->getEndDate()) && !($first->getEndDate() < $second->getStartDate());
 }