public function connect() { if ($connection = $this->getRandomConnection()) { $connection->connect(); } }