src/mako/validator/Validator.php
public function addRules(string $field, array $ruleSet): Validator
	{
		$this->ruleSets = array_merge_recursive($this->ruleSets, $this->expandFields([$field => $ruleSet]));

		return $this;
	}
public function addRules(string $field, array $ruleSet): Validator
	{
		$this->ruleSets = array_merge_recursive($this->ruleSets, $this->expandFields([$field => $ruleSet]));

		return $this;
	}
public function addRules ( string $ field , array $ ruleSet ) : Validator { $ this -> ruleSets = array_merge_recursive ( $ this -> ruleSets , $ this -> expandFields ( [ $ field => $ ruleSet ] ) ) ; return $ this ; }
Adds validation rules to input field.

@param  string                    $field   Input field
@param  array                     $ruleSet Rule set
@return \mako\validator\Validator
Adds validation rules to input field .