original_string: public function setRules(array $rules) {
          /* Clear the stack */
          unset($this->rules);
          $this->rules = new \SplStack;
  
          /* Add the rules */
          foreach ($rules as $callable) {
              $this->addRule($callable);
          }
  
          return $this;
      }
code: public function setRules(array $rules) {
          /* Clear the stack */
          unset($this->rules);
          $this->rules = new \SplStack;
  
          /* Add the rules */
          foreach ($rules as $callable) {
              $this->addRule($callable);
          }
  
          return $this;
      }
code_tokens: public function setRules ( array $ rules ) { /* Clear the stack */ unset ( $ this -> rules ) ; $ this -> rules = new \ SplStack ; /* Add the rules */ foreach ( $ rules as $ callable ) { $ this -> addRule ( $ callable ) ; } return $ this ; }
docstring: Set all rules in the stack
  
  @return self
docstring_tokens: Set all rules in the stack