WC_Abstract_Order D

Total Complexity 340
Dependencies 23
Dependents 2
Total lines 2,405
Lines of code 1,139
Logical lines of code 631
Comment lines 924
Methods 107
Properties 7

Methods 107

Method Rating Maintainability Complexity Lines of code
update_taxes()
B
42 17 46
apply_coupon()
A
42 13 51
hold_applied_coupons()
A
46 13 38
set_coupon_discount_amounts()
A
43 10 46
get_subtotal_to_display()
A
48 11 31
get_tax_location()
A
49 11 28
calculate_totals()
A
45 10 41
add_product()
A
43 9 47
get_shipping_to_display()
A
52 9 22
set_status()
A
55 9 18
calculate_taxes()
A
51 8 25
recalculate_coupons()
A
48 7 33
save_items()
S
52 7 25
get_item()
S
56 7 18
save()
S
50 6 31
__construct()
S
57 6 16
set_item_discount_amounts()
S
57 6 15
get_items_key()
S
59 6 14
add_order_item_totals_fee_rows()
S
57 6 14
add_order_item_totals_tax_rows()
S
56 5 17
get_item_subtotal()
S
60 5 12
get_item_total()
S
60 5 12
get_tax_totals()
S
53 4 21
add_item()
S
58 4 16
get_formatted_line_subtotal()
S
57 4 16
get_items()
S
59 4 14
get_line_subtotal()
S
61 4 12
get_line_total()
S
65 4 8
get_item_tax()
S
65 4 8
get_items_tax_classes()
S
64 4 9
set_parent_id()
S
68 4 6
set_currency()
S
68 4 6
remove_order_items()
S
60 3 14
get_temporary_coupon()
S
61 3 13
remove_coupon()
S
60 3 13
hold_coupon_for_users()
S
63 3 9
get_status()
S
67 3 7
hold_coupon()
S
64 3 9
remove_item()
S
64 3 9
has_free_item()
S
67 3 8
has_shipping_method()
S
66 3 8
add_payment_token()
S
63 3 10
has_status()
S
76 3 3
get_coupon_codes()
S
65 3 10
get_item_count()
S
65 3 8
type_to_group()
S
60 2 13
get_billing_and_current_user_aliases()
S
61 2 12
get_order_item_totals()
S
62 2 11
get_data()
S
59 1 16
get_discount_to_display()
S
72 2 4
calculate_shipping()
S
65 2 9
add_order_item_totals_shipping_row()
S
66 2 8
add_order_item_totals_discount_row()
S
66 2 8
add_order_item_totals_subtotal_row()
S
65 2 9
get_line_tax()
S
76 2 3
get_title()
S
68 2 7
get_shipping_method()
S
67 2 7
get_total_discount()
S
66 2 8
set_total()
S
68 2 7
get_discount_total()
S
79 1 3
get_subtotal()
S
74 1 4
get_total_tax()
S
79 1 3
get_total()
S
79 1 3
get_cart_tax()
S
79 1 3
get_shipping_tax()
S
79 1 3
get_shipping_total()
S
79 1 3
get_formatted_order_total()
S
74 1 4
get_discount_tax()
S
79 1 3
get_date_paid()
S
79 1 3
get_date_completed()
S
79 1 3
get_cart_total_for_order()
S
71 1 7
get_date_modified()
S
79 1 3
get_date_created()
S
79 1 3
get_prices_include_tax()
S
79 1 3
get_version()
S
79 1 3
add_order_item_totals_total_row()
S
70 1 6
get_currency()
S
79 1 3
get_parent_id()
S
79 1 3
handle_exception()
S
67 1 9
get_type()
S
82 1 3
get_valid_statuses()
S
80 1 3
get_user_id()
S
82 1 3
get_cart_subtotal_for_order()
S
71 1 7
set_discount_total()
S
78 1 3
get_taxes()
S
80 1 3
get_fees()
S
80 1 3
get_coupons()
S
80 1 3
get_values_for_total()
S
66 1 9
set_recorded_coupon_usage_counts()
S
79 1 3
set_total_tax()
S
78 1 3
set_cart_tax()
S
74 1 4
set_shipping_tax()
S
74 1 4
set_shipping_total()
S
78 1 3
set_discount_tax()
S
78 1 3
set_date_modified()
S
80 1 3
__clone()
S
98 1 1
set_date_created()
S
80 1 3
set_prices_include_tax()
S
79 1 3
get_payment_tokens()
S
80 1 3
set_version()
S
80 1 3
get_base_data()
S
72 1 6
get_recorded_coupon_usage_counts()
S
79 1 3
get_taxable_location()
S
80 1 3
get_tax_rates()
S
71 1 5
get_user()
S
82 1 3
get_total_fees()
S
67 1 9
get_shipping_methods()
S
80 1 3