host = $host; $this->dbName = $dbName; $this->userName = $userName; $this->password = $password; } public static function getInstance() { if(static::$instance == null) { static::$instance = new Database($host, $dbName, $userName, $password); } return static::$instance; } }