WC_Abstract_Order D

Total Complexity 323
Dependencies 21
Dependents 1
Total lines 2,180
Lines of code 1,065
Logical lines of code 593
Comment lines 805
Methods 98
Properties 6

Methods 98

Method Rating Maintainability Complexity Lines of code
update_taxes()
B
42 17 46
hold_applied_coupons()
A
46 13 38
apply_coupon()
A
43 12 46
get_subtotal_to_display()
A
48 11 31
set_coupon_discount_amounts()
A
44 10 42
calculate_totals()
A
45 10 41
add_product()
A
43 9 47
get_tax_location()
A
52 9 22
get_shipping_to_display()
A
52 9 22
calculate_taxes()
A
51 8 25
recalculate_coupons()
A
48 7 34
set_status()
A
56 8 17
save_items()
S
52 7 25
get_item()
S
56 7 18
__construct()
S
57 6 16
set_item_discount_amounts()
S
57 6 15
add_order_item_totals_fee_rows()
S
57 6 14
get_items_key()
S
59 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
save()
S
56 4 18
get_formatted_line_subtotal()
S
57 4 16
add_item()
S
58 4 16
get_items()
S
59 4 14
get_line_subtotal()
S
61 4 12
set_currency()
S
68 4 6
get_items_tax_classes()
S
64 4 9
set_parent_id()
S
68 4 6
get_line_total()
S
65 4 8
get_item_tax()
S
65 4 8
remove_coupon()
S
61 3 12
remove_order_items()
S
62 3 12
add_payment_token()
S
63 3 10
hold_coupon_for_users()
S
63 3 9
hold_coupon()
S
64 3 9
get_discount_to_display()
S
72 3 4
remove_item()
S
64 3 9
has_status()
S
76 3 3
has_shipping_method()
S
66 3 8
get_item_count()
S
65 3 8
get_coupon_codes()
S
65 3 10
has_free_item()
S
67 3 8
get_status()
S
67 3 7
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_line_tax()
S
76 2 3
set_total()
S
68 2 7
get_total_discount()
S
66 2 8
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
calculate_shipping()
S
66 2 9
get_shipping_method()
S
67 2 7
get_cart_tax()
S
79 1 3
get_shipping_tax()
S
79 1 3
get_shipping_total()
S
79 1 3
get_discount_tax()
S
79 1 3
get_discount_total()
S
79 1 3
get_date_created()
S
79 1 3
get_date_modified()
S
79 1 3
get_formatted_order_total()
S
74 1 4
get_prices_include_tax()
S
79 1 3
get_cart_subtotal_for_order()
S
71 1 7
get_version()
S
79 1 3
get_currency()
S
79 1 3
get_parent_id()
S
79 1 3
handle_exception()
S
67 1 9
add_order_item_totals_total_row()
S
70 1 6
get_cart_total_for_order()
S
71 1 7
get_values_for_total()
S
66 1 9
get_total()
S
79 1 3
set_discount_total()
S
79 1 3
get_fees()
S
80 1 3
get_taxes()
S
80 1 3
get_shipping_methods()
S
80 1 3
get_type()
S
82 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
79 1 3
set_discount_tax()
S
79 1 3
set_date_modified()
S
80 1 3
get_total_fees()
S
69 1 8
set_date_created()
S
80 1 3
set_prices_include_tax()
S
79 1 3
set_version()
S
80 1 3
get_user()
S
82 1 3
get_user_id()
S
82 1 3
get_valid_statuses()
S
80 1 3
get_payment_tokens()
S
80 1 3
get_subtotal()
S
74 1 4
get_coupons()
S
80 1 3
get_total_tax()
S
79 1 3
get_tax_rates()
S
71 1 5