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