src/Rule/Interval/Overlapping.php
public function assert(Interval $first, Interval $second): bool
    {
        return
            $first->getEnd()->greaterThan($second->getStart()) &&
            $first->getStart()->lessThan($second->getEnd());
    }
public function assert(Interval $first, Interval $second): bool
    {
        return
            $first->getEnd()->greaterThan($second->getStart()) &&
            $first->getStart()->lessThan($second->getEnd());
    }
public function assert ( Interval $ first , Interval $ second ) : bool { return $ first -> getEnd ( ) -> greaterThan ( $ second -> getStart ( ) ) && $ first -> getStart ( ) -> lessThan ( $ second -> getEnd ( ) ) ; }
Returns true if the second interval overlaps the first one
@param Interval $first
@param Interval $second
@return bool
Returns true if the second interval overlaps the first one