original_string: public function addFactory(FactoryInterface $factory, $priority = 10)
      {
          $this->factoryList->insert($factory, $priority);
          return $this;
      }
code: public function addFactory(FactoryInterface $factory, $priority = 10)
      {
          $this->factoryList->insert($factory, $priority);
          return $this;
      }
code_tokens: public function addFactory ( FactoryInterface $ factory , $ priority = 10 ) { $ this -> factoryList -> insert ( $ factory , $ priority ) ; return $ this ; }
docstring: Adds a factory to the list of possible factories
  
  @param   FactoryInterface    $factory    The factory to add
  @param   integer             $priority   The priority
  @return  Factory                         The factory
docstring_tokens: Adds a factory to the list of possible factories