. */ declare(strict_types=1); namespace App\Settings\InfoProviderSystem; use Jbtronics\SettingsBundle\Settings\Settings; use Jbtronics\SettingsBundle\Settings\SettingsParameter; use Jbtronics\SettingsBundle\Settings\SettingsTrait; use Symfony\Component\Form\Extension\Core\Type\CurrencyType; use Symfony\Component\Validator\Constraints as Assert; #[Settings] class LCSCSettings { use SettingsTrait; #[SettingsParameter(label: "Enable LCSC provider", envVar: "bool:PROVIDER_LCSC_ENABLED")] public bool $enabled = false; #[SettingsParameter(label: "LCSC Currency", description: "The currency to retrieve prices from LCSC", formType: CurrencyType::class, envVar: "string:PROVIDER_LCSC_CURRENCY")] #[Assert\Currency()] public string $currency = 'EUR'; }