@@ 176-184 (lines=9) @@ | ||
173 | * @throws \Nnx\FormComparator\Comparator\CollectionDiffService\Exception\RuntimeException |
|
174 | * @throws \Nnx\FormComparator\Comparator\Exception\DomainException |
|
175 | */ |
|
176 | protected function createInsertedElementDiff(ElementInterface $insertedElement, $prefixPath) |
|
177 | { |
|
178 | $builder = $this->diffBuilderFactory(DiffElementBuilder::INSERT_ELEMENT_MODE); |
|
179 | $builder->setPathToElement($prefixPath) |
|
180 | ->setTargetElement($insertedElement) |
|
181 | ->setSourceLabel($insertedElement->getLabel()); |
|
182 | ||
183 | $this->diff[] = $builder->build(); |
|
184 | } |
|
185 | ||
186 | ||
187 | /** |
|
@@ 329-337 (lines=9) @@ | ||
326 | * @throws \Nnx\FormComparator\Comparator\CollectionDiffService\Exception\RuntimeException |
|
327 | * @throws \Nnx\FormComparator\Comparator\Exception\DomainException |
|
328 | */ |
|
329 | public function createDeleteElementDiff(ElementInterface $deletedElement, $pathToDeletedElement) |
|
330 | { |
|
331 | $builder = $this->diffBuilderFactory(DiffElementBuilder::DELETE_ELEMENT_MODE); |
|
332 | $builder->setPathToElement($pathToDeletedElement) |
|
333 | ->setSourceElement($deletedElement) |
|
334 | ->setSourceLabel($deletedElement->getLabel()); |
|
335 | ||
336 | $this->diff[] = $builder->build(); |
|
337 | } |
|
338 | ||
339 | ||
340 | /** |