1 | <?php |
||
5 | class IndexComparison implements \Countable, \IteratorAggregate |
||
6 | { |
||
7 | /** |
||
8 | * @var IndexObjectComparison[] |
||
9 | */ |
||
10 | protected $objectComparisons = []; |
||
11 | |||
12 | public function addObjectComparison(IndexObjectComparison $objectComparison): IndexComparison |
||
18 | |||
19 | public function getObjectComparison(string $path): ?IndexObjectComparison |
||
23 | |||
24 | public function hasObjectComparison(string $path): bool |
||
28 | |||
29 | /** |
||
30 | * Merges the given comparison set into this set. |
||
31 | * There must be an empty intersection between the path sets of both comparisons. |
||
32 | * |
||
33 | * @param IndexComparison $other |
||
34 | * @return IndexComparison |
||
35 | */ |
||
36 | public function merge(IndexComparison $other): IndexComparison |
||
44 | |||
45 | /** |
||
46 | * {@inheritdoc} |
||
47 | */ |
||
48 | public function count() |
||
52 | |||
53 | /** |
||
54 | * {@inheritdoc} |
||
55 | */ |
||
56 | public function getIterator() |
||
60 | } |
||
61 |