Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
0.00% |
0 / 1 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
||
| 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: \MediaWiki\JobQueue\IJobSpecification} |
| 19 | */ |
| 20 | public function getAsJobSpecification(); |
| 21 | } |
| 22 | |
| 23 | /** @deprecated class alias since 1.42 */ |
| 24 | class_alias( EnqueueableDataUpdate::class, 'EnqueueableDataUpdate' ); |