protected function parseMoney($xml){
        $r = array();
        $r['Amount'] = (string)$xml->Amount;
        $r['CurrencyCode'] = (string)$xml->CurrencyCode;
        return $r;
    }
protected function parseMoney($xml){
        $r = array();
        $r['Amount'] = (string)$xml->Amount;
        $r['CurrencyCode'] = (string)$xml->CurrencyCode;
        return $r;
    }
protected function parseMoney ( $ xml ) { $ r = array ( ) ; $ r [ 'Amount' ] = ( string ) $ xml -> Amount ; $ r [ 'CurrencyCode' ] = ( string ) $ xml -> CurrencyCode ; return $ r ; }
Parses XML for a single money element into an array.
This structure is used many times throughout fee estimates.
@param SimpleXMLElement $xml <p>Money node of the XML response from Amazon.</p>
@return array Parsed structure from XML
Parses XML for a single money element into an array . This structure is used many times throughout fee estimates .