original_string: public function removeConnection($name)
      {
          if (!$this->hasConnection($name)) {
              throw new \InvalidArgumentException(sprintf('The connection "%s" does not exists.', $name));
          }
  
          unset($this->connections[$name]);
      }
code: public function removeConnection($name)
      {
          if (!$this->hasConnection($name)) {
              throw new \InvalidArgumentException(sprintf('The connection "%s" does not exists.', $name));
          }
  
          unset($this->connections[$name]);
      }
code_tokens: public function removeConnection ( $ name ) { if ( ! $ this -> hasConnection ( $ name ) ) { throw new \ InvalidArgumentException ( sprintf ( 'The connection "%s" does not exists.' , $ name ) ) ; } unset ( $ this -> connections [ $ name ] ) ; }
docstring: Remove a connection.
  
  @param string $name The connection name.
  
  @throws \InvalidArgumentException If the connection does not exists.
  
  @api
docstring_tokens: Remove a connection .