WsdlToPhp /
DomHandler
| 1 | <?php |
||
| 2 | |||
| 3 | declare(strict_types=1); |
||
| 4 | |||
| 5 | namespace WsdlToPhp\DomHandler; |
||
| 6 | |||
| 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); |
|
|
0 ignored issues
–
show
Bug
introduced
by
Loading history...
|
|||
| 14 | 6 | $this->nodeNameSpace = $nameSpaceNode; |
|
| 15 | } |
||
| 16 | |||
| 17 | 2 | public function getValue(bool $withNamespace = false, bool $withinItsType = true, ?string $asType = self::DEFAULT_VALUE_TYPE) |
|
| 18 | { |
||
| 19 | 2 | return parent::getValue(true, $withinItsType, $asType); |
|
| 20 | } |
||
| 21 | |||
| 22 | 2 | public function getValueNamespace(): ?string |
|
| 23 | { |
||
| 24 | 2 | return null; |
|
| 25 | } |
||
| 26 | } |
||
| 27 |