public function getConnection() { if (!$this->connection) { $this->openConnection(); } return $this->connection; }