Debian Codegraph @

extensions/AbuseFilter/includes/Consequences/Consequence/ConsequencesDisablerConsequence.php

raw symbols SCIP
1 <?php
2
3 namespace MediaWiki\Extension\AbuseFilter\Consequences\Consequence;
4
5 /**
6 * Interface for consequences that are checked first, and can disable every other consequence (including
7 * other ConsequencesDisabler consequences) if needed.
8 */
9 interface ConsequencesDisablerConsequence {
10 /**
11 * Returns whether other consequences should be disabled. This may depend on Consequence::execute().
12 * ConsequenceNotPrecheckedException can be used to assert that execute() was called.
13 * @return bool
14 */
15 public function shouldDisableOtherConsequences(): bool;
16
17 /**
18 * Returns an arbitrary integer representing the sorting importance of this consequence. Consequences
19 * with lower numbers are executed first.
20 * @note If two consequences have the same importance, their final order is nondeterministic
21 * @return int
22 */
23 public function getSort(): int;
24 }