original_string: public function setMax($max)
      {
          if (is_array($max) and isset($max['max'])) {
              $max = $max['max'];
          }
  
          if (!is_string($max) and !is_numeric($max)) {
              // require_once 'Zend/Validate/Exception.php';
              throw new Zend_Validate_Exception ('Invalid options to validator provided');
          }
  
          $max = (integer) $max;
          if (($this->_min !== null) && ($max < $this->_min)) {
              // require_once 'Zend/Validate/Exception.php';
              throw new Zend_Validate_Exception("The maximum must be greater than or equal to the minimum file count, but "
                                              . "$max < {$this->_min}");
          }
  
          $this->_max = $max;
          return $this;
      }
code: public function setMax($max)
      {
          if (is_array($max) and isset($max['max'])) {
              $max = $max['max'];
          }
  
          if (!is_string($max) and !is_numeric($max)) {
              // require_once 'Zend/Validate/Exception.php';
              throw new Zend_Validate_Exception ('Invalid options to validator provided');
          }
  
          $max = (integer) $max;
          if (($this->_min !== null) && ($max < $this->_min)) {
              // require_once 'Zend/Validate/Exception.php';
              throw new Zend_Validate_Exception("The maximum must be greater than or equal to the minimum file count, but "
                                              . "$max < {$this->_min}");
          }
  
          $this->_max = $max;
          return $this;
      }
code_tokens: public function setMax ( $ max ) { if ( is_array ( $ max ) and isset ( $ max [ 'max' ] ) ) { $ max = $ max [ 'max' ] ; } if ( ! is_string ( $ max ) and ! is_numeric ( $ max ) ) { // require_once 'Zend/Validate/Exception.php'; throw new Zend_Validate_Exception ( 'Invalid options to validator provided' ) ; } $ max = ( integer ) $ max ; if ( ( $ this -> _min !== null ) && ( $ max < $ this -> _min ) ) { // require_once 'Zend/Validate/Exception.php'; throw new Zend_Validate_Exception ( "The maximum must be greater than or equal to the minimum file count, but " . "$max < {$this->_min}" ) ; } $ this -> _max = $ max ; return $ this ; }
docstring: Sets the maximum file count
  
  @param  integer|array $max The maximum file count
  @return Zend_Validate_StringLength Provides a fluent interface
  @throws Zend_Validate_Exception When max is smaller than min
docstring_tokens: Sets the maximum file count