28 private readonly
string $input,
34 return self::CONSTRAINT_PASSED;
36 return self::CONSTRAINT_FAILED;
41 if ( $this->input !== self::VALID_UNICODE ) {
42 $statusValue->
fatal(
'unicode-support-fail' );
43 $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(private readonly string $input,)
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.