public function add_rules( array $rules ) {
		foreach ( $rules as $name => $rule ) {
			$this->add_rule( $name, $rule );
		}

		return $this;
	}
public function add_rules( array $rules ) {
		foreach ( $rules as $name => $rule ) {
			$this->add_rule( $name, $rule );
		}

		return $this;
	}
public function add_rules ( array $ rules ) { foreach ( $ rules as $ name => $ rule ) { $ this -> add_rule ( $ name , $ rule ) ; } return $ this ; }
Sets a multiple rules for the validation.

@param  array $rules Array rules.
@return $this
Sets a multiple rules for the validation .