original_string: public function max($max)
      {
          if (isset($this->min) && $this->min > $max) {
              throw new \InvalidArgumentException(sprintf('You cannot define a max(%s) as you already have a min(%s)', $max, $this->min));
          }
          $this->max = $max;
  
          return $this;
      }
code: public function max($max)
      {
          if (isset($this->min) && $this->min > $max) {
              throw new \InvalidArgumentException(sprintf('You cannot define a max(%s) as you already have a min(%s)', $max, $this->min));
          }
          $this->max = $max;
  
          return $this;
      }
code_tokens: public function max ( $ max ) { if ( isset ( $ this -> min ) && $ this -> min > $ max ) { throw new \ InvalidArgumentException ( sprintf ( 'You cannot define a max(%s) as you already have a min(%s)' , $ max , $ this -> min ) ) ; } $ this -> max = $ max ; return $ this ; }
docstring: Ensures that the value is smaller than the given reference.
  
  @param mixed $max
  
  @return $this
  
  @throws \InvalidArgumentException when the constraint is inconsistent
docstring_tokens: Ensures that the value is smaller than the given reference .