I'm trying to make an extension that allows the user to choose from a list of shipping and billing addresses that they have previously entered. I'm using the store_order_complete_end hook listed here https://www.exp-resso.com/docs/extension_hooks.html but I can't access the addresses in the $order object because the $order->attributes object is a protected attribute. Is there any other way to get the addresses for the order?
public function my_store_order_complete_end($order) {
$vars = $order->attributes; // undefined as it's protected
}