value)) ?? self::Live; } public static function set(self $mode): void { Settings::set(self::SETTING, $mode->value); } public function isTest(): bool { return $this === self::Test; } }