original_string: public function withRuleFactory(string $name, callable $factory): ValidatorFactory
      {
          $factories = array_merge($this->factories, [$name => $factory]);
  
          return new ValidatorFactory($this->translator, $factories);
      }
code: public function withRuleFactory(string $name, callable $factory): ValidatorFactory
      {
          $factories = array_merge($this->factories, [$name => $factory]);
  
          return new ValidatorFactory($this->translator, $factories);
      }
code_tokens: public function withRuleFactory ( string $ name , callable $ factory ) : ValidatorFactory { $ factories = array_merge ( $ this -> factories , [ $ name => $ factory ] ) ; return new ValidatorFactory ( $ this -> translator , $ factories ) ; }
docstring: Return a new validator factory with an additional rule factory.
  
  @param string    $name
  @param callable  $factory
  @return \Ellipse\Validation\ValidatorFactory
docstring_tokens: Return a new validator factory with an additional rule factory .