From f90d591f1ff8434f0a048af8bae5f7d3b622e469 Mon Sep 17 00:00:00 2001 From: Jacson Passold Date: Fri, 16 Mar 2018 15:52:02 -0300 Subject: [PATCH] function docs --- src/exposers/types/class-tainacan-xml.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/exposers/types/class-tainacan-xml.php b/src/exposers/types/class-tainacan-xml.php index f28f872fb..b116fcd10 100644 --- a/src/exposers/types/class-tainacan-xml.php +++ b/src/exposers/types/class-tainacan-xml.php @@ -16,6 +16,12 @@ class Xml extends Type { return $response; } + /** + * Convert Array to Xml + * @param array $data + * @param \SimpleXMLElement $xml_data + * @return \SimpleXMLElement + */ protected function array_to_xml( $data, $xml_data ) { foreach( $data as $key => $value ) { if( is_numeric($key) ){