original_string: public function withDefaultTemplates(array $templates): ValidatorFactory
      {
          $translator = $this->translator->withTemplates($templates);
  
          return new ValidatorFactory($translator, $this->factories);
      }
code: public function withDefaultTemplates(array $templates): ValidatorFactory
      {
          $translator = $this->translator->withTemplates($templates);
  
          return new ValidatorFactory($translator, $this->factories);
      }
code_tokens: public function withDefaultTemplates ( array $ templates ) : ValidatorFactory { $ translator = $ this -> translator -> withTemplates ( $ templates ) ; return new ValidatorFactory ( $ translator , $ this -> factories ) ; }
docstring: Return a new validator factory with an additional list of templates added
  to the translator.
  
  @param array $templates
  @return \Ellipse\Validation\ValidatorFactory
docstring_tokens: Return a new validator factory with an additional list of templates added to the translator .