original_string: public function or_(HTML_QuickForm2_Rule $next)
      {
          if ($next instanceof HTML_QuickForm2_Rule_Required) {
              throw new HTML_QuickForm2_InvalidArgumentException(
                  'or_(): Cannot add a "required" rule'
              );
          }
          $this->chainedRules[] = array($next);
          return $this;
      }
code: public function or_(HTML_QuickForm2_Rule $next)
      {
          if ($next instanceof HTML_QuickForm2_Rule_Required) {
              throw new HTML_QuickForm2_InvalidArgumentException(
                  'or_(): Cannot add a "required" rule'
              );
          }
          $this->chainedRules[] = array($next);
          return $this;
      }
code_tokens: public function or_ ( HTML_QuickForm2_Rule $ next ) { if ( $ next instanceof HTML_QuickForm2_Rule_Required ) { throw new HTML_QuickForm2_InvalidArgumentException ( 'or_(): Cannot add a "required" rule' ) ; } $ this -> chainedRules [ ] = array ( $ next ) ; return $ this ; }
docstring: Adds a rule to the chain with an "or" operator
  
  Evaluation is short-circuited, next rule will not be evaluated if the
  previous one returns true. The method is named this way because "or" is
  a reserved word in PHP.
  
  @param    HTML_QuickForm2_Rule
  @return   HTML_QuickForm2_Rule    first rule in the chain (i.e. $this)
  @throws   HTML_QuickForm2_InvalidArgumentException    when trying to add
  a "required" rule to the chain
docstring_tokens: Adds a rule to the chain with an or operator