public function add_rule( $name, $rules ) {
		$parsed = ( new Validation_Parser() )->parse( $rules );

		foreach ( $parsed as $rule ) {
			$this->rule( $rule[0], $name, ...$rule[1] );
		}

		return $this;
	}
public function add_rule( $name, $rules ) {
		$parsed = ( new Validation_Parser() )->parse( $rules );

		foreach ( $parsed as $rule ) {
			$this->rule( $rule[0], $name, ...$rule[1] );
		}

		return $this;
	}
public function add_rule ( $ name , $ rules ) { $ parsed = ( new Validation_Parser ( ) ) -> parse ( $ rules ) ; foreach ( $ parsed as $ rule ) { $ this -> rule ( $ rule [ 0 ] , $ name , ... $ rule [ 1 ] ) ; } return $ this ; }
Add a single validation rule.

@param  string       $name  The field name.
@param  array|string $rules The rules.
@return $this
Add a single validation rule .