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