@@ -96,6 +96,9 @@ |
||
| 96 | 96 | } |
| 97 | 97 | } |
| 98 | 98 | |
| 99 | + /** |
|
| 100 | + * @param string $type |
|
| 101 | + */ |
|
| 99 | 102 | private function addData($type, array $params) |
| 100 | 103 | { |
| 101 | 104 | $this->data[] = [$type => $params]; |
@@ -4,10 +4,14 @@ discard block |
||
| 4 | 4 | |
| 5 | 5 | interface XMLDocumentInterface |
| 6 | 6 | { |
| 7 | + /** |
|
| 8 | + * @return \DOMElement |
|
| 9 | + */ |
|
| 7 | 10 | public function getElement(); |
| 8 | 11 | |
| 9 | 12 | /** |
| 10 | 13 | * @param mixed $value The text value of node. |
| 14 | + * @return void |
|
| 11 | 15 | */ |
| 12 | 16 | public function setNodeValue($value); |
| 13 | 17 | |
@@ -32,9 +36,9 @@ discard block |
||
| 32 | 36 | public function getAttribute($name); |
| 33 | 37 | |
| 34 | 38 | /** |
| 35 | - * @param $namespaceURI |
|
| 36 | - * @param $qualifiedName |
|
| 37 | - * @param $value |
|
| 39 | + * @param string $namespaceURI |
|
| 40 | + * @param string $qualifiedName |
|
| 41 | + * @param string $value |
|
| 38 | 42 | * @return string |
| 39 | 43 | */ |
| 40 | 44 | public function setAttributeNS($namespaceURI, $qualifiedName, $value); |
@@ -64,14 +68,14 @@ discard block |
||
| 64 | 68 | * @param string $namespaceURI |
| 65 | 69 | * @param string $qualifiedName |
| 66 | 70 | * @param string $value |
| 67 | - * @return mixed |
|
| 71 | + * @return \DOMElement |
|
| 68 | 72 | */ |
| 69 | 73 | public function createElementNS($namespaceURI, $qualifiedName, $value = null); |
| 70 | 74 | |
| 71 | 75 | /** |
| 72 | 76 | * @param XMLDocumentInterface $child The element to remove. |
| 73 | 77 | * |
| 74 | - * @return mixed |
|
| 78 | + * @return \DOMNode |
|
| 75 | 79 | */ |
| 76 | 80 | public function removeNode(XMLDocumentInterface $child); |
| 77 | 81 | |