original_string: public function add(IMinkDriverFactory $driver_factory)
  	{
  		$driver_name = $driver_factory->getDriverName();
  
  		if ( isset($this->_registry[$driver_name]) ) {
  			throw new \LogicException('Driver factory for "' . $driver_name . '" driver is already registered.');
  		}
  
  		$this->_registry[$driver_name] = $driver_factory;
  	}
code: public function add(IMinkDriverFactory $driver_factory)
  	{
  		$driver_name = $driver_factory->getDriverName();
  
  		if ( isset($this->_registry[$driver_name]) ) {
  			throw new \LogicException('Driver factory for "' . $driver_name . '" driver is already registered.');
  		}
  
  		$this->_registry[$driver_name] = $driver_factory;
  	}
code_tokens: public function add ( IMinkDriverFactory $ driver_factory ) { $ driver_name = $ driver_factory -> getDriverName ( ) ; if ( isset ( $ this -> _registry [ $ driver_name ] ) ) { throw new \ LogicException ( 'Driver factory for "' . $ driver_name . '" driver is already registered.' ) ; } $ this -> _registry [ $ driver_name ] = $ driver_factory ; }
docstring: Registers Mink driver factory.
  
  @param IMinkDriverFactory $driver_factory Driver factory.
  
  @return void
  @throws \LogicException When driver factory is already registered.
docstring_tokens: Registers Mink driver factory .