public static function hasInnerJoin(TimeSlot $a, TimeSlot $b) {
        $c1 = DateTimeHelper::isBetween($b->getStartDate(), $a->getStartDate(), $a->getEndDate());
        $c2 = DateTimeHelper::isBetween($b->getEndDate(), $a->getStartDate(), $a->getEndDate());
        $c3 = DateTimeHelper::isBetween($a->getStartDate(), $b->getStartDate(), $b->getEndDate());
        $c4 = DateTimeHelper::isBetween($a->getEndDate(), $b->getStartDate(), $b->getEndDate());
        return $c1 || $c2 || $c3 || $c4;
    }
public static function hasInnerJoin(TimeSlot $a, TimeSlot $b) {
        $c1 = DateTimeHelper::isBetween($b->getStartDate(), $a->getStartDate(), $a->getEndDate());
        $c2 = DateTimeHelper::isBetween($b->getEndDate(), $a->getStartDate(), $a->getEndDate());
        $c3 = DateTimeHelper::isBetween($a->getStartDate(), $b->getStartDate(), $b->getEndDate());
        $c4 = DateTimeHelper::isBetween($a->getEndDate(), $b->getStartDate(), $b->getEndDate());
        return $c1 || $c2 || $c3 || $c4;
    }
public static function hasInnerJoin ( TimeSlot $ a , TimeSlot $ b ) { $ c1 = DateTimeHelper :: isBetween ( $ b -> getStartDate ( ) , $ a -> getStartDate ( ) , $ a -> getEndDate ( ) ) ; $ c2 = DateTimeHelper :: isBetween ( $ b -> getEndDate ( ) , $ a -> getStartDate ( ) , $ a -> getEndDate ( ) ) ; $ c3 = DateTimeHelper :: isBetween ( $ a -> getStartDate ( ) , $ b -> getStartDate ( ) , $ b -> getEndDate ( ) ) ; $ c4 = DateTimeHelper :: isBetween ( $ a -> getEndDate ( ) , $ b -> getStartDate ( ) , $ b -> getEndDate ( ) ) ; return $ c1 || $ c2 || $ c3 || $ c4 ; }
Determines if a time slot A has an inner join with time slot B.

@param TimeSlot $a The time slot A.
@param TimeSlot $b The time slot B.
@return bool Returns true in case of success, false otherwise.
Determines if a time slot A has an inner join with time slot B .