MediaWiki  master
IEditConstraint.php
Go to the documentation of this file.
1 <?php
22 
24 use StatusValue;
25 
33 interface IEditConstraint extends IEditObject {
34 
36  public const CONSTRAINT_PASSED = 'constraint-passed';
37 
39  public const CONSTRAINT_FAILED = 'constraint-failed';
40 
44  public function checkConstraint(): string;
45 
55  public function getLegacyStatus(): StatusValue;
56 
57 }
Generic operation result class Has warning/error list, boolean status and arbitrary value.
Definition: StatusValue.php:46
Interface for all constraints that can prevent edits.
getLegacyStatus()
Get the legacy status for failure (or success)
Serves as a common repository of constants for EditPage edit status results.
Definition: IEditObject.php:30