Jake Vanderwerf
5 days ago a9b3b28d001941921aa70d37fdc87c758a163a44
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
<?php
namespace JVBase\managers\queue;
if (!defined('ABSPATH')) {
    exit;
}
 
interface Mergeable
{
    /**
     * Return requestData key/value pairs that must match for a candidate to be considered.
     * Empty array = match any (current behavior).
     */
    public function matchCriteria(Operation $incoming): array;
    public function canMerge(Operation $existing, Operation $incoming): bool;
    public function merge(Operation $existing, Operation $incoming): Operation;
}