53 $this->performer = $performer;
59 $this->result = self::CONSTRAINT_PASSED;
60 return self::CONSTRAINT_PASSED;
71 if ( $changeTagStatus->isOK() ) {
72 $this->result = self::CONSTRAINT_PASSED;
73 return self::CONSTRAINT_PASSED;
76 $this->result = $changeTagStatus;
77 return self::CONSTRAINT_FAILED;
81 if ( $this->result === self::CONSTRAINT_PASSED ) {
82 $statusValue = StatusValue::newGood();
84 $statusValue = $this->result;
85 $statusValue->value = self::AS_CHANGE_TAG_ERROR;
if(!defined('MW_SETUP_CALLBACK'))
The persistent session ID (if any) loaded at startup.
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.