private function getConnection() { if (!$this->isConnected()) { $this->connect(); } return $this->connection; }