WC_Order D

Total Complexity 277
Dependencies 7
Dependents 31
Total lines 2,283
Lines of code 943
Logical lines of code 423
Comment lines 1,036
Methods 141
Properties 4

Methods 141

Method Rating Maintainability Complexity Lines of code
get_formatted_order_total()
A
48 13 28
get_downloadable_items()
A
46 10 37
payment_complete()
A
46 8 39
add_order_note()
A
44 7 46
needs_processing()
A
52 8 24
status_transition()
S
47 6 37
set_status()
S
56 6 17
set_address_prop()
S
62 6 11
maybe_set_date_paid()
S
62 6 10
get_date_paid()
S
65 6 7
get_changes()
S
58 5 15
get_item_count_refunded()
S
58 5 15
get_tax_refunded_for_item()
S
58 5 14
has_downloadable_item()
S
63 5 11
needs_shipping_address()
S
58 4 15
add_order_item_totals_refund_rows()
S
61 4 11
get_total_tax_refunded_by_rate_id()
S
62 4 11
get_total_refunded_for_item()
S
62 4 11
get_qty_refunded_for_item()
S
62 4 11
update_status()
S
53 3 24
get_customer_order_notes()
S
55 3 19
get_address_prop()
S
62 4 10
add_order_item_totals_payment_method_row()
S
65 4 8
maybe_set_user_billing_email()
S
64 4 10
set_payment_method()
S
63 3 11
get_refunds()
S
58 2 16
get_formatted_shipping_address()
S
64 3 9
get_total_qty_refunded()
S
65 3 9
set_billing_email()
S
69 3 6
get_cancel_endpoint()
S
64 3 10
is_download_permitted()
S
76 3 3
get_checkout_payment_url()
S
59 2 15
get_order_item_totals()
S
60 2 13
get_cancel_order_url()
S
59 1 17
get_formatted_billing_address()
S
71 2 5
has_billing_address()
S
79 2 3
set_shipping_address()
S
72 2 5
has_shipping_address()
S
79 2 3
maybe_set_date_completed()
S
74 2 5
needs_payment()
S
73 2 4
get_total_refunded()
S
63 2 10
get_user()
S
78 2 3
get_total_shipping_refunded()
S
63 2 10
get_total_tax_refunded()
S
63 2 10
set_billing_address()
S
72 2 5
get_cancel_order_url_raw()
S
60 1 15
get_data()
S
61 1 13
is_created_via()
S
78 1 3
set_shipping_phone()
S
79 1 3
set_shipping_address_2()
S
79 1 3
set_shipping_address_1()
S
79 1 3
set_shipping_state()
S
79 1 3
set_transaction_id()
S
80 1 3
set_customer_ip_address()
S
80 1 3
set_shipping_country()
S
79 1 3
set_shipping_postcode()
S
79 1 3
set_shipping_city()
S
79 1 3
set_customer_user_agent()
S
80 1 3
set_payment_method_title()
S
80 1 3
get_remaining_refund_amount()
S
78 1 3
set_created_via()
S
80 1 3
is_editable()
S
77 1 3
get_remaining_refund_items()
S
79 1 3
add_status_transition_note()
S
77 1 3
get_edit_order_url()
S
73 1 4
get_view_order_url()
S
77 1 3
get_checkout_order_received_url()
S
71 1 5
set_shipping_last_name()
S
79 1 3
is_paid()
S
78 1 3
has_cart_hash()
S
79 1 3
set_customer_note()
S
80 1 3
key_is_valid()
S
79 1 3
set_recorded_sales()
S
79 1 3
set_new_order_email_sent()
S
79 1 3
set_download_permissions_granted()
S
79 1 3
set_order_stock_reduced()
S
79 1 3
set_cart_hash()
S
80 1 3
set_date_paid()
S
80 1 3
set_date_completed()
S
80 1 3
set_shipping_company()
S
79 1 3
set_billing_company()
S
79 1 3
set_shipping_first_name()
S
79 1 3
get_billing_state()
S
79 1 3
get_shipping_postcode()
S
79 1 3
get_shipping_state()
S
79 1 3
get_shipping_city()
S
79 1 3
get_shipping_address_2()
S
79 1 3
get_shipping_address_1()
S
79 1 3
get_shipping_company()
S
79 1 3
get_shipping_last_name()
S
79 1 3
get_shipping_first_name()
S
79 1 3
get_billing_phone()
S
79 1 3
get_billing_email()
S
79 1 3
get_billing_country()
S
79 1 3
get_billing_postcode()
S
79 1 3
get_billing_city()
S
79 1 3
get_shipping_phone()
S
79 1 3
get_billing_address_2()
S
79 1 3
get_billing_address_1()
S
79 1 3
get_billing_company()
S
79 1 3
get_billing_last_name()
S
79 1 3
get_billing_first_name()
S
79 1 3
get_user_id()
S
80 1 3
get_customer_id()
S
79 1 3
get_order_key()
S
79 1 3
get_order_number()
S
78 1 3
get_base_data()
S
69 1 7
handle_exception()
S
65 1 10
save()
S
72 1 6
get_shipping_country()
S
79 1 3
get_payment_method()
S
79 1 3
set_billing_phone()
S
79 1 3
get_recorded_sales()
S
79 1 3
set_billing_country()
S
79 1 3
set_billing_postcode()
S
79 1 3
set_billing_state()
S
79 1 3
set_billing_city()
S
79 1 3
set_billing_address_2()
S
79 1 3
set_billing_address_1()
S
79 1 3
set_billing_last_name()
S
79 1 3
set_billing_first_name()
S
79 1 3
set_customer_id()
S
79 1 3
set_order_key()
S
78 1 3
set_shipping()
S
81 1 3
set_billing()
S
81 1 3
get_new_order_email_sent()
S
79 1 3
get_payment_method_title()
S
79 1 3
get_download_permissions_granted()
S
79 1 3
get_order_stock_reduced()
S
79 1 3
get_formatted_shipping_full_name()
S
77 1 3
get_formatted_billing_full_name()
S
77 1 3
get_shipping_address_map_url()
S
68 1 6
get_address()
S
77 1 3
get_cart_hash()
S
79 1 3
get_date_completed()
S
79 1 3
get_customer_note()
S
79 1 3
get_created_via()
S
79 1 3
get_customer_user_agent()
S
79 1 3
get_customer_ip_address()
S
79 1 3
get_transaction_id()
S
79 1 3
untrash()
S
80 1 3