/** * 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; }