original_string: public function setConnection($name, ConnectionInterface $connection)
      {
          if (null !== $this->loggerCallable) {
              $connection->setLoggerCallable($this->loggerCallable);
              $connection->setLogDefault(array('connection' => $name));
          } else {
              $connection->setLoggerCallable(null);
          }
  
          $this->connections[$name] = $connection;
      }
code: public function setConnection($name, ConnectionInterface $connection)
      {
          if (null !== $this->loggerCallable) {
              $connection->setLoggerCallable($this->loggerCallable);
              $connection->setLogDefault(array('connection' => $name));
          } else {
              $connection->setLoggerCallable(null);
          }
  
          $this->connections[$name] = $connection;
      }
code_tokens: public function setConnection ( $ name , ConnectionInterface $ connection ) { if ( null !== $ this -> loggerCallable ) { $ connection -> setLoggerCallable ( $ this -> loggerCallable ) ; $ connection -> setLogDefault ( array ( 'connection' => $ name ) ) ; } else { $ connection -> setLoggerCallable ( null ) ; } $ this -> connections [ $ name ] = $ connection ; }
docstring: Set a connection.
  
  @param string              $name       The connection name.
  @param ConnectionInterface $connection The connection.
  
  @api
docstring_tokens: Set a connection .