protected function populateAttributes(\Guzzle\Service\Resource\Model $data)
    {
        if (isset($data['Attributes'])) {
            $attributes = array();
            foreach ($data['Attributes'] as $name => $value) {
                list ($type, $value) = each($value);
                $attributes[$name] = new Attribute($value, $type);
            }
            return $attributes;
        } else {
            return null;
        }
    }
protected function populateAttributes(\Guzzle\Service\Resource\Model $data)
    {
        if (isset($data['Attributes'])) {
            $attributes = array();
            foreach ($data['Attributes'] as $name => $value) {
                list ($type, $value) = each($value);
                $attributes[$name] = new Attribute($value, $type);
            }
            return $attributes;
        } else {
            return null;
        }
    }
protected function populateAttributes ( \ Guzzle \ Service \ Resource \ Model $ data ) { if ( isset ( $ data [ 'Attributes' ] ) ) { $ attributes = array ( ) ; foreach ( $ data [ 'Attributes' ] as $ name => $ value ) { list ( $ type , $ value ) = each ( $ value ) ; $ attributes [ $ name ] = new Attribute ( $ value , $ type ) ; } return $ attributes ; } else { return null ; } }
Extract the attributes array from response data
@param \Guzzle\Service\Resource\Model $data The response body data
@return array|null
Extract the attributes array from response data