original_string: 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;
  	}
code: 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;
  	}
code_tokens: 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 ; }
docstring: Add a single validation rule.
  
  @param  string       $name  The field name.
  @param  array|string $rules The rules.
  @return $this
docstring_tokens: Add a single validation rule .