Conditions | 1 |
Paths | 1 |
Total Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 2 |
Changes | 0 |
1 | <?php declare(strict_types=1); |
||
44 | protected function addElement(\DomDocument $document, \DOMElement $rootElement, NodeInterface $node) : void |
||
45 | { |
||
46 | $element = $document->createElement(static::NODE_NAME); |
||
47 | $element->setAttribute('href', $node->getLink()); |
||
48 | |||
49 | $rootElement->appendChild($element); |
||
50 | } |
||
51 | } |
||
52 |