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