Conditions | 1 |
Paths | 1 |
Total Lines | 7 |
Code Lines | 4 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 1 |
Changes | 0 |
1 | <?php declare(strict_types=1); |
||
34 | 3 | protected function addElement(\DomDocument $document, \DOMElement $rootElement, NodeInterface $node) : void |
|
35 | { |
||
36 | 3 | $element = $document->createElement(static::NODE_NAME); |
|
37 | 3 | $element->setAttribute('href', $node->getLink()); |
|
38 | |||
39 | 3 | $rootElement->appendChild($element); |
|
40 | 3 | } |
|
41 | } |
||
42 |