/** * Clear freeze coupons. * * @param array $coupon Coupon data. * @return bool */ protected static function filterFreezeCoupons($coupon) { if (empty(self::$couponTypes)) { self::$couponTypes = Internals\DiscountCouponTable::getCouponTypes(true); } return isset($coupon['TYPE']) && isset(self::$couponTypes[$coupon['TYPE']]) && $coupon['STATUS'] != self::STATUS_FREEZE; }