src/Rule/Interval/NeighborhoodAfter.php
public function assert(Interval $first, Interval $second): bool
    {
        return $first->getStart()->equalTo($second->getEnd());
    }
public function assert(Interval $first, Interval $second): bool
    {
        return $first->getStart()->equalTo($second->getEnd());
    }
public function assert ( Interval $ first , Interval $ second ) : bool { return $ first -> getStart ( ) -> equalTo ( $ second -> getEnd ( ) ) ; }
Returns true if the second interval is neighbor of the first one
@param Interval $first
@param Interval $second
@return bool
Returns true if the second interval is neighbor of the first one