original_string: public function add_rules( array $rules ) {
  		foreach ( $rules as $name => $rule ) {
  			$this->add_rule( $name, $rule );
  		}
  
  		return $this;
  	}
code: public function add_rules( array $rules ) {
  		foreach ( $rules as $name => $rule ) {
  			$this->add_rule( $name, $rule );
  		}
  
  		return $this;
  	}
code_tokens: public function add_rules ( array $ rules ) { foreach ( $ rules as $ name => $ rule ) { $ this -> add_rule ( $ name , $ rule ) ; } return $ this ; }
docstring: Sets a multiple rules for the validation.
  
  @param  array $rules Array rules.
  @return $this
docstring_tokens: Sets a multiple rules for the validation .