function docs

This commit is contained in:
Jacson Passold 2018-03-16 15:52:02 -03:00
parent c161d54256
commit f90d591f1f
1 changed files with 6 additions and 0 deletions

View File

@ -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) ){