Jake Vanderwerf
2026-02-17 a24a06002081ad71a78ffeff9072725ba39cf121
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;
}