original_string: public function setRules( $rules )
      {
          $this->rules = array();
  
          foreach ( $rules as $rule )
          {
              $this->addRule( $rule );
          }
  
          return $this;
      }
code: public function setRules( $rules )
      {
          $this->rules = array();
  
          foreach ( $rules as $rule )
          {
              $this->addRule( $rule );
          }
  
          return $this;
      }
code_tokens: public function setRules ( $ rules ) { $ this -> rules = array ( ) ; foreach ( $ rules as $ rule ) { $ this -> addRule ( $ rule ) ; } return $ this ; }
docstring: Set all rules
  
  @param \Customize\Model\Rule\Structure[] $rules
  @return \Customize\Model\Sheet\Structure
docstring_tokens: Set all rules