Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
0.00% |
0 / 1 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
||
| 1 | <?php |
| 2 | |
| 3 | namespace MediaWiki\Deferred; |
| 4 | |
| 5 | /** |
| 6 | * Deferrable update that specifies whether it must run outside of any explicit |
| 7 | * LBFactory transaction round or must run inside of a round owned by doUpdate(). |
| 8 | * |
| 9 | * @stable to implement |
| 10 | * |
| 11 | * @since 1.34 |
| 12 | */ |
| 13 | interface TransactionRoundAwareUpdate { |
| 14 | /** @var int No explicit transaction round should be used */ |
| 15 | public const TRX_ROUND_ABSENT = 1; |
| 16 | /** @var int An explicit transaction round owned by self::doUpdate should be used */ |
| 17 | public const TRX_ROUND_PRESENT = 2; |
| 18 | |
| 19 | /** |
| 20 | * @return int One of the class TRX_ROUND_* constants |
| 21 | */ |
| 22 | public function getTransactionRoundRequirement(); |
| 23 | } |
| 24 | |
| 25 | /** @deprecated class alias since 1.42 */ |
| 26 | class_alias( TransactionRoundAwareUpdate::class, 'TransactionRoundAwareUpdate' ); |