protected function init($order)
{
wc_deprecated_function('init', '2.7', 'Logic moved to constructor');
if (is_numeric($order)) {
$this->read($order);
} elseif ($order instanceof WC_Order) {
$this->read(absint($order->get_id()));
} elseif (isset($order->ID)) {
$this->read(absint($order->ID));
}
}