public function withRuleFactory(string $name, callable $factory): ValidatorFactory
    {
        $factories = array_merge($this->factories, [$name => $factory]);

        return new ValidatorFactory($this->translator, $factories);
    }
public function withRuleFactory(string $name, callable $factory): ValidatorFactory
    {
        $factories = array_merge($this->factories, [$name => $factory]);

        return new ValidatorFactory($this->translator, $factories);
    }
public function withRuleFactory ( string $ name , callable $ factory ) : ValidatorFactory { $ factories = array_merge ( $ this -> factories , [ $ name => $ factory ] ) ; return new ValidatorFactory ( $ this -> translator , $ factories ) ; }
Return a new validator factory with an additional rule factory.

@param string    $name
@param callable  $factory
@return \Ellipse\Validation\ValidatorFactory
Return a new validator factory with an additional rule factory .