<?php
/**
- * Deferrable update for closure/callback updates that need LBFactory and Database
- * to be outside any active transaction round.
+ * Deferrable update that must run outside of any explicit LBFactory transaction round
*
* @since 1.31
*/
-class TransactionRoundDefiningUpdate implements DeferrableUpdate, DeferrableCallback {
+class TransactionRoundDefiningUpdate
+ implements DeferrableUpdate, DeferrableCallback, TransactionRoundAwareUpdate
+{
/** @var callable|null */
private $callback;
/** @var string */
public function getOrigin() {
return $this->fname;
}
+
+ /**
+ * @return int One of the class TRX_ROUND_* constants
+ * @since 1.34
+ */
+ final public function getTransactionRoundRequirement() {
+ return self::TRX_ROUND_ABSENT;
+ }
}