public static function contains(TimeSlot $a, TimeSlot $b) {
        $c1 = DateTimeHelper::isBetween($b->getStartDate(), $a->getStartDate(), $a->getEndDate());
        $c2 = DateTimeHelper::isBetween($b->getEndDate(), $a->getStartDate(), $a->getEndDate());
        return $c1 && $c2;
    }
public static function contains(TimeSlot $a, TimeSlot $b) {
        $c1 = DateTimeHelper::isBetween($b->getStartDate(), $a->getStartDate(), $a->getEndDate());
        $c2 = DateTimeHelper::isBetween($b->getEndDate(), $a->getStartDate(), $a->getEndDate());
        return $c1 && $c2;
    }
public static function contains ( TimeSlot $ a , TimeSlot $ b ) { $ c1 = DateTimeHelper :: isBetween ( $ b -> getStartDate ( ) , $ a -> getStartDate ( ) , $ a -> getEndDate ( ) ) ; $ c2 = DateTimeHelper :: isBetween ( $ b -> getEndDate ( ) , $ a -> getStartDate ( ) , $ a -> getEndDate ( ) ) ; return $ c1 && $ c2 ; }
Determines if a time slot A contains a 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 contains a time slot b .