WC_Braintree_Subscription C

Total Complexity 108
Dependencies 3
Dependents 11
Total lines 560
Lines of code 367
Logical lines of code 178
Comment lines 88
Methods 73
Properties 3

Methods 73

Method Rating Maintainability Complexity Lines of code
can_be_updated_to()
A
48 12 33
status_transition()
S
51 4 27
get_formatted_date()
S
61 4 12
sync_dates()
S
61 4 11
get_num_of_billing_cycles()
S
73 3 4
save()
S
63 3 10
get_descriptor()
S
69 3 7
get_order_item_totals()
S
60 2 13
last_day_of_month()
S
66 2 8
get_date()
S
66 2 8
set_date()
S
70 2 6
get_formatted_total()
S
58 1 15
update_date()
S
63 2 10
get_date_key()
S
77 2 3
get_formatted_line_subtotal()
S
66 2 8
update_status()
S
66 2 8
payment_complete()
S
71 2 6
get_previous_payment_date()
S
80 1 3
set_subscription_period_interval()
S
80 1 3
set_end_date()
S
80 1 3
get_recurring_cart_key()
S
80 1 3
get_created_in_braintree()
S
80 1 3
set_subscription_trial_length()
S
80 1 3
set_subscription_trial_period()
S
80 1 3
set_first_payment_date()
S
80 1 3
set_braintree_plan()
S
80 1 3
set_subscription_period()
S
80 1 3
get_subscription_length()
S
80 1 3
set_subscription_length()
S
80 1 3
get_next_payment_date()
S
80 1 3
set_created_in_braintree()
S
80 1 3
set_recurring_cart_key()
S
80 1 3
get_merchant_account_id()
S
80 1 3
get_subscription_period_interval()
S
80 1 3
get_subscription_period()
S
80 1 3
get_braintree_plan()
S
80 1 3
set_previous_payment_date()
S
80 1 3
get_start_date()
S
80 1 3
get_trial_end_date()
S
80 1 3
get_end_date()
S
80 1 3
get_subscription_trial_length()
S
80 1 3
get_subscription_trial_period()
S
80 1 3
get_first_payment_date()
S
80 1 3
set_trial_end_date()
S
80 1 3
__construct()
S
72 1 5
set_next_payment_date()
S
80 1 3
get_trial_period()
S
82 1 3
get_order()
S
82 1 3
wc_braintree_get_post()
S
80 1 3
get_valid_statuses()
S
78 1 3
add_order_item_totals_subtotal_row()
S
79 1 3
add_order_item_totals_total_row()
S
70 1 6
get_formatted_order_total()
S
71 1 5
never_expires()
S
79 1 3
get_length()
S
82 1 3
get_billing_interval()
S
82 1 3
get_period()
S
82 1 3
has_trial()
S
79 1 3
get_trial_length()
S
82 1 3
set_start_date()
S
80 1 3
get_timezone()
S
82 1 3
has_descriptors()
S
81 1 3
update_payment_method_title()
S
79 1 3
update_payment_method_token()
S
79 1 3
set_created()
S
81 1 3
is_created()
S
81 1 3
has_child_orders()
S
71 1 5
get_payment_method_to_display()
S
79 1 3
get_view_subscription_url()
S
74 1 4
get_type()
S
82 1 3
get_checkout_payment_url()
S
80 1 3
set_merchant_account_id()
S
80 1 3
get_cancel_subscription_url()
S
78 1 3