@@ -2,6 +2,9 @@ discard block |
||
| 2 | 2 | |
| 3 | 3 | namespace Dgame\Soap\Hydrator\Dom; |
| 4 | 4 | |
| 5 | +use DOMDocument; |
|
| 6 | +use DOMElement; |
|
| 7 | +use DOMNode; |
|
| 5 | 8 | use Dgame\Soap\Attribute\Attribute; |
| 6 | 9 | use Dgame\Soap\Attribute\XmlAttribute; |
| 7 | 10 | use Dgame\Soap\Element; |
@@ -9,9 +12,6 @@ discard block |
||
| 9 | 12 | use Dgame\Soap\Visitor\ElementVisitorInterface; |
| 10 | 13 | use Dgame\Soap\XmlElement; |
| 11 | 14 | use Dgame\Soap\XmlNode; |
| 12 | -use DOMDocument; |
|
| 13 | -use DOMElement; |
|
| 14 | -use DOMNode; |
|
| 15 | 15 | |
| 16 | 16 | /** |
| 17 | 17 | * Class Assembler |
@@ -10,6 +10,7 @@ |
||
| 10 | 10 | { |
| 11 | 11 | /** |
| 12 | 12 | * @param AttributeVisitorInterface $visitor |
| 13 | + * @return void |
|
| 13 | 14 | */ |
| 14 | 15 | public function accept(AttributeVisitorInterface $visitor); |
| 15 | 16 | } |
| 16 | 17 | \ No newline at end of file |
@@ -13,11 +13,13 @@ |
||
| 13 | 13 | { |
| 14 | 14 | /** |
| 15 | 15 | * @param Attribute $attribute |
| 16 | + * @return void |
|
| 16 | 17 | */ |
| 17 | 18 | public function visitAttribute(Attribute $attribute); |
| 18 | 19 | |
| 19 | 20 | /** |
| 20 | 21 | * @param XmlAttribute $attribute |
| 22 | + * @return void |
|
| 21 | 23 | */ |
| 22 | 24 | public function visitXmlAttribute(XmlAttribute $attribute); |
| 23 | 25 | } |
| 24 | 26 | \ No newline at end of file |
@@ -10,6 +10,7 @@ |
||
| 10 | 10 | { |
| 11 | 11 | /** |
| 12 | 12 | * @param ElementVisitorInterface $visitor |
| 13 | + * @return void |
|
| 13 | 14 | */ |
| 14 | 15 | public function accept(ElementVisitorInterface $visitor); |
| 15 | 16 | } |
| 16 | 17 | \ No newline at end of file |
@@ -14,16 +14,19 @@ |
||
| 14 | 14 | { |
| 15 | 15 | /** |
| 16 | 16 | * @param Element $element |
| 17 | + * @return void |
|
| 17 | 18 | */ |
| 18 | 19 | public function visitElement(Element $element); |
| 19 | 20 | |
| 20 | 21 | /** |
| 21 | 22 | * @param XmlElement $element |
| 23 | + * @return void |
|
| 22 | 24 | */ |
| 23 | 25 | public function visitXmlElement(XmlElement $element); |
| 24 | 26 | |
| 25 | 27 | /** |
| 26 | 28 | * @param XmlNode $node |
| 29 | + * @return void |
|
| 27 | 30 | */ |
| 28 | 31 | public function visitXmlNode(XmlNode $node); |
| 29 | 32 | } |
| 30 | 33 | \ No newline at end of file |
@@ -205,7 +205,7 @@ |
||
| 205 | 205 | $doc = new DOMDocument(); |
| 206 | 206 | $doc->load(__DIR__ . '/xml/test3.xml'); |
| 207 | 207 | |
| 208 | - $mapper = new ClassMapper( |
|
| 208 | + $mapper = new ClassMapper( |
|
| 209 | 209 | [ |
| 210 | 210 | 'Car' => TestCar::class, |
| 211 | 211 | 'Phone' => TestPhone::class, |