productIntelligenceEnabled = $productIntelligenceEnabled; $this->mergeEnabled = $mergeEnabled; $this->confidenceEnabled = $confidenceEnabled; $this->qualityEnabled = $qualityEnabled; $this->previewIntelligenceEnabled = $previewIntelligenceEnabled; $this->purchaseIntelligenceEnabled = $purchaseIntelligenceEnabled; $this->defaultConfidence = max(0.0, min(1.0, $defaultConfidence)); $this->defaultSourcePriority = $defaultSourcePriority; } public function isProductIntelligenceEnabled(): bool { return $this->productIntelligenceEnabled; } public function isMergeEnabled(): bool { return $this->productIntelligenceEnabled && $this->mergeEnabled; } public function isConfidenceEnabled(): bool { return $this->productIntelligenceEnabled && $this->confidenceEnabled; } public function isQualityEnabled(): bool { return $this->productIntelligenceEnabled && $this->qualityEnabled; } public function isPreviewIntelligenceEnabled(): bool { return $this->previewIntelligenceEnabled; } public function isPurchaseIntelligenceEnabled(): bool { return $this->purchaseIntelligenceEnabled; } public function getDefaultConfidence(): float { return $this->defaultConfidence; } public function getDefaultSourcePriority(): int { return $this->defaultSourcePriority; } }