private function checkLimits(BaseRange $range)
 {
     if (!($this->min && $range->getMin() && $range->getMin() < $this->min) && !($this->max && $range->getMax() && $range->getMax() > $this->max)) {
         return true;
     }
     return false;
 }
 public function intersects(BaseRange $range)
 {
     return $this->max >= $range->getMin() && $this->min <= $range->getMax();
 }