src/mako/validator/Validator.php
public static function rule(string $ruleName, ...$parameters): string
	{
		if(empty($parameters))
		{
			return $ruleName;
		}

		return $ruleName . '(' . substr(json_encode($parameters), 1, -1) . ')';
	}
public static function rule(string $ruleName, ...$parameters): string
	{
		if(empty($parameters))
		{
			return $ruleName;
		}

		return $ruleName . '(' . substr(json_encode($parameters), 1, -1) . ')';
	}
public static function rule ( string $ ruleName , ... $ parameters ) : string { if ( empty ( $ parameters ) ) { return $ ruleName ; } return $ ruleName . '(' . substr ( json_encode ( $ parameters ) , 1 , - 1 ) . ')' ; }
Rule builder.

@param  string $ruleName      Rule name
@param  mixed  ...$parameters Rule parameters
@return string
Rule builder .