Exemple #1
0
 /**
  * Register connection
  * 
  * @param  Connection $connection
  * @return Mysqli 
  */
 public function registerConnection(Connection $connection)
 {
     $this->connection = $connection;
     $this->connection->setDriver($this);
     // needs access to driver to createStatement()
     return $this;
 }