applyFeedbackAdjustmentsResult = $result; return $this; } /** * Set the result to return from analyzeRequest * * @param MachineLearningResult $result Result to return * @return self */ public function withAnalyzeRequestResult(MachineLearningResult $result): self { $this->analyzeRequestResult = $result; return $this; } /** * Get the adjustments that were passed to applyFeedbackAdjustments * * @return array Adjustments that were passed */ public function getReceivedAdjustments(): array { return $this->receivedAdjustments; } /** * {@inheritdoc} */ public function applyFeedbackAdjustments(array $adjustments): array { $this->receivedAdjustments = $adjustments; return $this->applyFeedbackAdjustmentsResult; } /** * {@inheritdoc} */ public function analyzeRequest(RequestAnalysisData $requestData, array $context = []): MachineLearningResult { return $this->analyzeRequestResult; } /** * {@inheritdoc} */ public function isEnabled(): bool { return true; } }