/** * Push to stack current order data. * * @param array $order Current order data. * @return void */ public static function setOrderData($order) { if (array_key_exists('DISCOUNT_DESCR', $order)) { unset($order['DISCOUNT_DESCR']); } if (array_key_exists('DISCOUNT_RESULT', $order)) { unset($order['DISCOUNT_RESULT']); } self::$previousOrderData = $order; }