Total Complexity | 3 |
Total Lines | 18 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
7 | class NameSpaceHandler extends AttributeHandler |
||
8 | { |
||
9 | protected \DOMNameSpaceNode $nodeNameSpace; |
||
10 | |||
11 | 6 | public function __construct(\DOMNameSpaceNode $nameSpaceNode, AbstractDomDocumentHandler $domDocumentHandler, int $index = -1) |
|
12 | { |
||
13 | 6 | parent::__construct(new \DOMAttr($nameSpaceNode->nodeName, $nameSpaceNode->nodeValue), $domDocumentHandler, $index); |
|
14 | 6 | $this->nodeNameSpace = $nameSpaceNode; |
|
15 | } |
||
16 | |||
17 | 2 | public function getValue(bool $withNamespace = false, bool $withinItsType = true, ?string $asType = self::DEFAULT_VALUE_TYPE) |
|
20 | } |
||
21 | |||
22 | 2 | public function getValueNamespace(): ?string |
|
27 |