1 | <?php |
||
25 | class FingerprintPatcher { |
||
26 | |||
27 | 4 | /** |
|
28 | 4 | * @param Fingerprint $fingerprint |
|
29 | 4 | * @param EntityDiff $patch |
|
30 | * |
||
31 | * @throws PatcherException |
||
32 | */ |
||
33 | public function patchFingerprint( Fingerprint $fingerprint, EntityDiff $patch ) { |
||
39 | 4 | ||
40 | 4 | /** |
|
41 | 4 | * @param TermList $terms |
|
42 | * @param Diff $patch |
||
43 | 4 | * |
|
44 | * @throws PatcherException |
||
45 | 4 | */ |
|
46 | 4 | private function patchTermList( TermList $terms, Diff $patch ) { |
|
51 | |||
52 | 4 | /** |
|
53 | 4 | * @see MapPatcher |
|
54 | * |
||
55 | * @param TermList $terms |
||
56 | * @param string $lang |
||
57 | * @param AtomicDiffOp $diffOp |
||
58 | * |
||
59 | * @throws PatcherException |
||
60 | 4 | */ |
|
61 | 4 | private function patchTerm( TermList $terms, $lang, AtomicDiffOp $diffOp ) { |
|
84 | |||
85 | 4 | /** |
|
86 | 4 | * @param AliasGroupList $groups |
|
87 | 4 | * @param Diff $patch |
|
88 | * |
||
89 | 4 | * @throws PatcherException |
|
90 | */ |
||
91 | private function patchAliasGroupList( AliasGroupList $groups, Diff $patch ) { |
||
96 | |||
97 | 4 | /** |
|
98 | 4 | * @see MapPatcher |
|
99 | * |
||
100 | 4 | * @param AliasGroupList $groups |
|
101 | 4 | * @param string $lang |
|
102 | 4 | * @param DiffOp $diffOp |
|
103 | * |
||
104 | 4 | * @throws PatcherException |
|
105 | */ |
||
106 | private function patchAliasGroup( AliasGroupList $groups, $lang, DiffOp $diffOp ) { |
||
127 | |||
128 | /** |
||
129 | * @param AliasGroupList $groups |
||
130 | * @param string $lang |
||
131 | * @param DiffOpChange $patch |
||
132 | */ |
||
133 | private function applyAliasGroupChange( AliasGroupList $groups, $lang, DiffOpChange $patch ) { |
||
140 | |||
141 | /** |
||
142 | * @param AliasGroupList $groups |
||
143 | * @param string $lang |
||
144 | * @param Diff $patch |
||
145 | */ |
||
146 | private function applyAliasGroupDiff( AliasGroupList $groups, $lang, Diff $patch ) { |
||
155 | |||
156 | /** |
||
157 | * @param Diff $diff |
||
158 | * |
||
159 | * @return bool |
||
160 | */ |
||
161 | private function containsOperationsOnOldValues( Diff $diff ) { |
||
165 | |||
166 | /** |
||
167 | * @see ListPatcher |
||
168 | * |
||
169 | * @param string[] $aliases |
||
170 | * @param Diff $patch |
||
171 | * |
||
172 | * @throws PatcherException |
||
173 | * @return string[] |
||
174 | */ |
||
175 | private function getPatchedAliases( array $aliases, Diff $patch ) { |
||
199 | |||
200 | } |
||
201 |