Returns a particular validator by its name.
public getValidatorByName ( string | Jyxo\Input\ValidatorInterface $name, mixed | array $param = null ) : Jyxo\Input\ValidatorInterface | ||
$name | string | Jyxo\Input\ValidatorInterface | Validator name |
$param | mixed | array | Validator constructor parameters. In case of a single parameter it can be its value, an array of values otherwise. NULL in case of no parameter. |
return | Jyxo\Input\ValidatorInterface |