public function addConnection($name, Connection $connection) { $this->connections[$name] = $connection; }