src/Guzzle/Service/Command/LocationVisitor/Response/XmlVisitor.php
protected function processXmlAttribute(Parameter $property, array &$value)
    {
        $sentAs = $property->getWireName();
        if (isset($value['@attributes'][$sentAs])) {
            $value[$property->getName()] = $value['@attributes'][$sentAs];
            unset($value['@attributes'][$sentAs]);
            if (empty($value['@attributes'])) {
                unset($value['@attributes']);
            }
        }
    }
protected function processXmlAttribute(Parameter $property, array &$value)
    {
        $sentAs = $property->getWireName();
        if (isset($value['@attributes'][$sentAs])) {
            $value[$property->getName()] = $value['@attributes'][$sentAs];
            unset($value['@attributes'][$sentAs]);
            if (empty($value['@attributes'])) {
                unset($value['@attributes']);
            }
        }
    }
protected function processXmlAttribute ( Parameter $ property , array & $ value ) { $ sentAs = $ property -> getWireName ( ) ; if ( isset ( $ value [ '@attributes' ] [ $ sentAs ] ) ) { $ value [ $ property -> getName ( ) ] = $ value [ '@attributes' ] [ $ sentAs ] ; unset ( $ value [ '@attributes' ] [ $ sentAs ] ) ; if ( empty ( $ value [ '@attributes' ] ) ) { unset ( $ value [ '@attributes' ] ) ; } } }
Process an XML attribute property

@param Parameter $property Property to process
@param array     $value    Value to process and update
Process an XML attribute property