forked from WsdlToPhp/DomHandler
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDomDocumentHandler.php
More file actions
28 lines (22 loc) · 871 Bytes
/
Copy pathDomDocumentHandler.php
File metadata and controls
28 lines (22 loc) · 871 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<?php
declare(strict_types=1);
namespace WsdlToPhp\DomHandler;
class DomDocumentHandler extends AbstractDomDocumentHandler
{
public function getRootElement(): ?ElementHandler
{
return $this->rootElement;
}
protected function getNodeHandler(\DOMNode $node, AbstractDomDocumentHandler $domDocument, int $index = -1): NodeHandler
{
return new NodeHandler($node, $domDocument, $index);
}
protected function getElementHandler(\DOMElement $element, AbstractDomDocumentHandler $domDocument, int $index = -1): ElementHandler
{
return new ElementHandler($element, $domDocument, $index);
}
protected function getAttributeHandler(\DOMAttr $attribute, AbstractDomDocumentHandler $domDocument, int $index = -1): AttributeHandler
{
return new AttributeHandler($attribute, $domDocument, $index);
}
}