/** * @return PdoSqlite */ public function getDb() { if ($this->db === null) { $databaseFile = $this->configParams->getAppDatabaseFile(); $this->db = new PdoSqlite($databaseFile); } return $this->db; }