Merge "Add checkDependencies.php"
[lhc/web/wiklou.git] / includes / deferred / TransactionRoundAwareUpdate.php
1 <?php
2
3 /**
4 * Deferrable update that specifies whether it must run outside of any explicit
5 * LBFactory transaction round or must run inside of a round owned by doUpdate().
6 *
7 * @since 1.34
8 */
9 interface TransactionRoundAwareUpdate {
10 /** @var int No transaction round should be used */
11 const TRX_ROUND_ABSENT = 1;
12 /** @var int A transaction round owned by self::doUpdate should be used */
13 const TRX_ROUND_PRESENT = 2;
14
15 /**
16 * @return int One of the class TRX_ROUND_* constants
17 */
18 public function getTransactionRoundRequirement();
19 }