Total Complexity | 4 |
Total Lines | 20 |
Duplicated Lines | 0 % |
Coverage | 50% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
11 | class DomDocumentHandler extends AbstractDomDocumentHandler |
||
12 | { |
||
13 | public function getRootElement(): ?ElementHandler |
||
14 | { |
||
15 | return $this->rootElement; |
||
16 | } |
||
17 | |||
18 | 2 | protected function getNodeHandler(DOMNode $node, AbstractDomDocumentHandler $domDocument, int $index = -1): NodeHandler |
|
19 | { |
||
20 | 2 | return new NodeHandler($node, $domDocument, $index); |
|
21 | } |
||
22 | |||
23 | 12 | protected function getElementHandler(DOMElement $element, AbstractDomDocumentHandler $domDocument, int $index = -1): ElementHandler |
|
24 | { |
||
25 | 12 | return new ElementHandler($element, $domDocument, $index); |
|
26 | } |
||
27 | |||
28 | protected function getAttributeHandler(DOMAttr $attribute, AbstractDomDocumentHandler $domDocument, int $index = -1): AttributeHandler |
||
31 | } |
||
32 | } |
||
33 |