wiki.techinc.nl/includes/deferred/MergeableUpdate.php
Aaron Schulz 99610822d8 Add mergeable update support DeferredUpdates
* DeferrableUpdate classes can implement MergeableUpdate.
  Duplicate updates will be merged via the merge() method.
* Make SquidUpdate support merge() so that duplicate URL
  purges are now caught accross the entire pre-send request
  execution.

Change-Id: Idffdd3e71d89e4a0f28281e65a881113caae497c
2015-12-04 19:08:51 +00:00

16 lines
385 B
PHP

<?php
/**
* Interface that deferrable updates can implement. DeferredUpdates uses this to merge
* all pending updates of PHP class into a single update by calling merge().
*
* @since 1.27
*/
interface MergeableUpdate {
/**
* Merge this update with $update
*
* @param MergeableUpdate $update Update of the same class type
*/
function merge( MergeableUpdate $update );
}