original_string: public function register(BrowserConfiguration $browser)
  	{
  		$type = $browser->getType();
  
  		if ( isset($this->browserConfigurations[$type]) ) {
  			throw new \InvalidArgumentException(
  				'Browser configuration with type "' . $type . '" is already registered'
  			);
  		}
  
  		$this->browserConfigurations[$type] = $browser;
  	}
code: public function register(BrowserConfiguration $browser)
  	{
  		$type = $browser->getType();
  
  		if ( isset($this->browserConfigurations[$type]) ) {
  			throw new \InvalidArgumentException(
  				'Browser configuration with type "' . $type . '" is already registered'
  			);
  		}
  
  		$this->browserConfigurations[$type] = $browser;
  	}
code_tokens: public function register ( BrowserConfiguration $ browser ) { $ type = $ browser -> getType ( ) ; if ( isset ( $ this -> browserConfigurations [ $ type ] ) ) { throw new \ InvalidArgumentException ( 'Browser configuration with type "' . $ type . '" is already registered' ) ; } $ this -> browserConfigurations [ $ type ] = $ browser ; }
docstring: Registers a browser configuration.
  
  @param BrowserConfiguration $browser Browser configuration.
  
  @return void
  @throws \InvalidArgumentException When browser configuration is already registered.
docstring_tokens: Registers a browser configuration .