Example #1
0
 public function modN($n)
 {
     $newRange = new Range($this->getMin() % $n);
     if ($this->isSpan()) {
         $newRange->setMax($this->getMax() % $n);
     }
     return $newRange;
 }