protected function addActiveConnection(ConnectionInterface $connection) { if (!$this->activeConnections) { $this->activeConnections = new \SplObjectStorage(); } $this->activeConnections->attach($connection); }