50 $this->performer = $performer;
56 $this->result = self::CONSTRAINT_PASSED;
57 return self::CONSTRAINT_PASSED;
68 if ( $changeTagStatus->isOK() ) {
69 $this->result = self::CONSTRAINT_PASSED;
70 return self::CONSTRAINT_PASSED;
73 $this->result = $changeTagStatus;
74 return self::CONSTRAINT_FAILED;
78 if ( $this->result === self::CONSTRAINT_PASSED ) {
79 $statusValue = StatusValue::newGood();
81 $statusValue = $this->result;
82 $statusValue->value = self::AS_CHANGE_TAG_ERROR;
if(!defined('MW_SETUP_CALLBACK'))
Verify user can add change tags.
__construct(Authority $performer, array $tags)
getLegacyStatus()
Get the legacy status for failure (or success)
Generic operation result class Has warning/error list, boolean status and arbitrary value.
Interface for all constraints that can prevent edits.