public function __get($key)
{
wc_doing_it_wrong($key, 'Refund properties should not be accessed directly.', '2.7');
/**
* Maps legacy vars to new getters.
*/
if ('reason' === $key) {
return $this->get_reason();
} elseif ('refund_amount' === $key) {
return $this->get_amount();
}
return parent::__get($key);
}