/** * offsetGet for ArrayAccess/Backwards compatibility. * @deprecated Add deprecation notices in future release. * @param string $offset * @return mixed */ public function offsetGet($offset) { if ('cost' === $offset) { $offset = 'total'; } return parent::offsetGet($offset); }
/** * offsetGet for ArrayAccess/Backwards compatibility. * @deprecated Add deprecation notices in future release. * @param string $offset * @return mixed */ public function offsetGet($offset) { if ('discount_amount' === $offset) { $offset = 'discount'; } elseif ('discount_amount_tax' === $offset) { $offset = 'discount_tax'; } return parent::offsetGet($offset); }
/** * offsetGet for ArrayAccess/Backwards compatibility. * @deprecated Add deprecation notices in future release. * @param string $offset * @return mixed */ public function offsetGet($offset) { if ('line_total' === $offset) { $offset = 'total'; } elseif ('line_tax' === $offset) { $offset = 'total_tax'; } elseif ('line_tax_data' === $offset) { $offset = 'taxes'; } return parent::offsetGet($offset); }