Localisation updates from https://translatewiki.net.
[mediawiki.git] / includes / deferred / EnqueueableDataUpdate.php
blob81d24c43c56d1d1f97859696fcfdca83ee29ea6e
1 <?php
3 namespace MediaWiki\Deferred;
5 /**
6 * Interface that marks a DataUpdate as enqueuable via the JobQueue
8 * Such updates must be representable using IJobSpecification, so that
9 * they can be serialized into jobs and enqueued for later execution
11 * @stable to implement
13 * @since 1.27
15 interface EnqueueableDataUpdate {
16 /**
17 * @return array (domain => DB domain ID, job => IJobSpecification)
18 * @phan-return array{domain: string, job: \IJobSpecification}
20 public function getAsJobSpecification();
23 /** @deprecated class alias since 1.42 */
24 class_alias( EnqueueableDataUpdate::class, 'EnqueueableDataUpdate' );