*/ namespace wishthis; class Options { public bool $updateAvailable = false; public function __construct(private Database $database) { } public function getOption(string $key): string { $value = ''; try { $option = $this->database->query( 'SELECT * FROM `options` WHERE `key` = "' . $key . '";' )->fetch(); $value = $option['value'] ?? ''; } catch (\Throwable $th) { //throw $th; } return $value; } }