Exemplo n.º 1
0
 public function isDuring(IntervalInterface $other)
 {
     return $this->begin === max($this->begin, $other->getBegin()) && $this->end === min($this->end, $other->getEnd());
 }
Exemplo n.º 2
0
 public function isAfter(IntervalInterface $interval)
 {
     return $this->begin->isAfter($interval->getEnd());
 }