Debian Codegraph @

includes/deferred/EnqueueableDataUpdate.php

raw symbols SCIP
1 <?php
2
3 namespace MediaWiki\Deferred;
4
5 /**
6 * Interface that marks a DataUpdate as enqueuable via the JobQueue
7 *
8 * Such updates must be representable using IJobSpecification, so that
9 * they can be serialized into jobs and enqueued for later execution
10 *
11 * @stable to implement
12 *
13 * @since 1.27
14 */
15 interface EnqueueableDataUpdate {
16 /**
17 * @return array (domain => DB domain ID, job => IJobSpecification)
18 * @phan-return array{domain: string, job: \IJobSpecification}
19 */
20 public function getAsJobSpecification();
21 }
22
23 /** @deprecated class alias since 1.42 */
24 class_alias( EnqueueableDataUpdate::class, 'EnqueueableDataUpdate' );