sanitizedInput = $sanitizedInput; $this->suggestion = $suggestion; parent::__construct( sprintf( '[DISCOVERY_UNRESOLVED] Input non riconosciuto: "%s". %s', $sanitizedInput, $suggestion ), 0, $previous ); } public function getSanitizedInput(): string { return $this->sanitizedInput; } public function getSuggestion(): string { return $this->suggestion; } /** Structured payload for API/AJAX responses */ public function toArray(): array { return [ 'error_type' => 'DISCOVERY_UNRESOLVED', 'input' => $this->sanitizedInput, 'suggestion' => $this->suggestion, ]; } }