original_string: public function add(string $name, RepositoryFactoryInterface $factory): void
      {
          $this->factories[$name] = $factory;
      }
code: public function add(string $name, RepositoryFactoryInterface $factory): void
      {
          $this->factories[$name] = $factory;
      }
code_tokens: public function add ( string $ name , RepositoryFactoryInterface $ factory ) : void { $ this -> factories [ $ name ] = $ factory ; }
docstring: Add repository factory.
  
  @param string                     $name    factory name
  @param RepositoryFactoryInterface $factory
docstring_tokens: Add repository factory .