wiki.techinc.nl/includes/deferred/TransactionRoundAwareUpdate.php
James D. Forrester 8e940c4f21 Standardise all our class alias deprecation comments for ease of grepping
Change-Id: I7f85d931d3b79da23e87b4e5692b2e14be8fcaa0
2024-03-19 20:11:29 +00:00

26 lines
758 B
PHP

<?php
namespace MediaWiki\Deferred;
/**
* Deferrable update that specifies whether it must run outside of any explicit
* LBFactory transaction round or must run inside of a round owned by doUpdate().
*
* @stable to implement
*
* @since 1.34
*/
interface TransactionRoundAwareUpdate {
/** @var int No explicit transaction round should be used */
public const TRX_ROUND_ABSENT = 1;
/** @var int An explicit transaction round owned by self::doUpdate should be used */
public const TRX_ROUND_PRESENT = 2;
/**
* @return int One of the class TRX_ROUND_* constants
*/
public function getTransactionRoundRequirement();
}
/** @deprecated class alias since 1.42 */
class_alias( TransactionRoundAwareUpdate::class, 'TransactionRoundAwareUpdate' );