featureCoupons = $featureCoupons; $this->featureVouchers = $featureVouchers; $this->showCategoryProductsButton = $showCategoryProductsButton; $this->productInteractionMode = $productInteractionMode; $this->managerUsername = $managerUsername; $this->ocDefaultCurrency = $ocDefaultCurrency; $this->ocConfigTax = $ocConfigTax; $this->ocStoreId = $ocStoreId; } public function isFeatureCoupons(): bool { return $this->featureCoupons; } public function isFeatureVouchers(): bool { return $this->featureVouchers; } public function isShowCategoryProductsButton(): bool { return $this->showCategoryProductsButton; } public function getProductInteractionMode(): string { return $this->productInteractionMode; } public function getManagerUsername(): ?string { return $this->managerUsername; } public function getOcDefaultCurrency(): string { return $this->ocDefaultCurrency; } public function isOcConfigTax(): bool { return $this->ocConfigTax; } public function getOcStoreId(): int { return $this->ocStoreId; } public function toArray(): array { return [ // enable_store больше не сериализуется, так как заменен на product_interaction_mode 'feature_coupons' => $this->featureCoupons, 'feature_vouchers' => $this->featureVouchers, 'show_category_products_button' => $this->showCategoryProductsButton, 'product_interaction_mode' => $this->productInteractionMode, 'manager_username' => $this->managerUsername, 'oc_default_currency' => $this->ocDefaultCurrency, 'oc_config_tax' => $this->ocConfigTax, 'oc_store_id' => $this->ocStoreId, ]; } }