code: public function contains($value)
      {
          return ($this->min !== null && $value < $this->min || $this->max !== null && $value > $this->max) === $this->inverted;
      }
docs: @param float $value
  
  @return bool