1414use Symfony \Component \Serializer \Exception \UnexpectedValueException ;
1515
1616/**
17- * Encodes XML data
17+ * Encodes XML data.
1818 *
1919 * @author Jordi Boggiano <j.boggiano@seld.be>
2020 * @author John Wards <jwards@whiteoctober.co.uk>
@@ -146,7 +146,7 @@ public function supportsDecoding($format)
146146 }
147147
148148 /**
149- * Sets the root node name
149+ * Sets the root node name.
150150 *
151151 * @param string $name root node name
152152 */
@@ -156,7 +156,8 @@ public function setRootNodeName($name)
156156 }
157157
158158 /**
159- * Returns the root node name
159+ * Returns the root node name.
160+ *
160161 * @return string
161162 */
162163 public function getRootNodeName ()
@@ -229,7 +230,7 @@ final protected function appendDocumentFragment(\DOMNode $node, $fragment)
229230 }
230231
231232 /**
232- * Checks the name is a valid xml element name
233+ * Checks the name is a valid xml element name.
233234 *
234235 * @param string $name
235236 *
@@ -279,7 +280,7 @@ private function parseXml(\DOMNode $node)
279280 }
280281
281282 /**
282- * Parse the input DOMNode attributes into an array
283+ * Parse the input DOMNode attributes into an array.
283284 *
284285 * @param \DOMNode $node xml to parse
285286 *
@@ -305,7 +306,7 @@ private function parseXmlAttributes(\DOMNode $node)
305306 }
306307
307308 /**
308- * Parse the input DOMNode value (content and children) into an array or a string
309+ * Parse the input DOMNode value (content and children) into an array or a string.
309310 *
310311 * @param \DOMNode $node xml to parse
311312 *
@@ -347,7 +348,7 @@ private function parseXmlValue(\DOMNode $node)
347348 }
348349
349350 /**
350- * Parse the data and convert it to DOMElements
351+ * Parse the data and convert it to DOMElements.
351352 *
352353 * @param \DOMNode $parentNode
353354 * @param array|object $data
@@ -452,7 +453,7 @@ private function needsCdataWrapping($val)
452453 }
453454
454455 /**
455- * Tests the value being passed and decide what sort of element to create
456+ * Tests the value being passed and decide what sort of element to create.
456457 *
457458 * @param \DOMNode $node
458459 * @param mixed $val
@@ -488,6 +489,10 @@ private function selectNodeType(\DOMNode $node, $val)
488489
489490 /**
490491 * Get real XML root node name, taking serializer options into account.
492+ *
493+ * @param array $context
494+ *
495+ * @return string
491496 */
492497 private function resolveXmlRootName (array $ context = array ())
493498 {
0 commit comments