/**
  * @return SingleDayTimeBoundary
  */
 public function getRight() : Boundary
 {
     return parent::getRight();
 }
Exemplo n.º 2
0
 /**
  * # Example:
  *
  *     This:  □□□□□□□□□□□■■■■■■■■■■■■■□□□□□□□□□□□□□□□□□□□□□
  *     Other: □□□□□□□□□□□□□□□□□□■■■■■■■■■■■□□□□□□□□□□□□□□□□
  *
  * # False examples:
  *
  *     This:  □□□□□□□□□□□■■■■■■■■■■■■■□□□□□□□□□□□□□□□□□□□□□
  *     Other: □□□□□□□□□□□■■■■■■■■■■■■■■■■■■□□□□□□□□□□□□□□□□
  *
  *     This:  □□□□□□□□□□□■■■■■■■■■■■■■□□□□□□□□□□□□□□□□□□□□□
  *     Other: □□□□□□□□□□□□□□□□□□□□□□□□■■■■■■■■■■■■□□□□□□□□□
  *
  * @param Interval $other
  * @return bool
  */
 public function isOverlappedFromRightBy(Interval $other) : bool
 {
     return $this->isContainingElement($other->getLeft()->getValue()) && $other->isContainingElement($this->getRight()->getValue());
 }