public function PetMateDetailsDAO() { $baseDAO = new BaseDAO(); $this->con = $baseDAO->getConnection(); $this->googleAPIKey = $baseDAO->getGoogleAPIKey(); }