41 private string $input;
47 $this->input = $inputUnicode;
52 return self::CONSTRAINT_PASSED;
54 return self::CONSTRAINT_FAILED;
59 if ( $this->input !== self::VALID_UNICODE ) {
60 $statusValue->
fatal(
'unicode-support-fail' );
61 $statusValue->value = self::AS_UNICODE_NOT_SUPPORTED;
if(!defined('MW_SETUP_CALLBACK'))
Verify unicode constraint.
const VALID_UNICODE
Correct unicode.
getLegacyStatus()
Get the legacy status for failure (or success)
__construct(string $inputUnicode)
Generic operation result class Has warning/error list, boolean status and arbitrary value.
fatal( $message,... $parameters)
Add an error and set OK to false, indicating that the operation as a whole was fatal.
Interface for all constraints that can prevent edits.