RCP_Membership D

Total Complexity 428
Dependencies 7
Dependents 18
Total lines 3,479
Lines of code 1,257
Logical lines of code 789
Comment lines 1,499
Methods 85
Properties 30

Methods 85

Method Rating Maintainability Complexity Lines of code
can_access()
D
25
72 118
get_prorate_credit_amount()
B
38 21 64
update()
B
41 20 52
can_cancel()
B
45 20 35
cancel_payment_profile()
B
40 16 57
renew()
A
41 13 52
setup_membership()
A
50 14 27
calculate_expiration()
A
45 12 38
can_renew()
A
51 12 24
complete_payment_plan()
A
48 10 31
set_status()
S
51 7 27
is_expired()
S
55 7 19
is_paid()
S
60 7 13
get_formatted_billing_cycle()
S
53 6 23
toggle_auto_renew_on()
S
53 6 22
is_trialing()
S
54 6 21
disable()
S
55 6 17
add_user_role()
S
56 6 15
can_toggle_auto_renew()
S
60 6 13
set_expiration_date()
S
60 5 13
cancel()
S
53 4 23
get_gateway()
S
56 4 20
toggle_auto_renew_off()
S
55 4 19
is_active()
S
57 4 17
get_upgrade_paths()
S
57 4 16
set_subscription_key()
S
59 4 15
can_change_gateway_price()
S
67 5 7
get_user_id()
S
59 4 15
get_expiration_date()
S
59 4 14
get_renewed_date()
S
61 4 11
change_gateway_price()
S
57 3 16
get_expiration_time()
S
62 4 10
has_access_level()
S
63 4 10
get_activated_date()
S
67 4 8
increment_times_billed()
S
64 4 10
activate()
S
58 3 15
create_gateway_subscription()
S
57 3 15
change_next_bill_date()
S
59 3 13
set_renewed_date()
S
60 3 13
set_gateway_customer_id()
S
62 3 12
set_gateway_subscription_id()
S
62 3 12
set_object_id()
S
63 3 11
get_cancellation_date()
S
67 3 7
get_membership_level_name()
S
64 3 10
get_object_id()
S
64 3 9
get_member()
S
68 3 7
can_create_gateway_subscription()
S
65 3 10
can_change_next_bill_date()
S
66 3 9
add_note()
S
60 2 12
was_upgraded()
S
62 2 12
get_card_details()
S
65 2 9
enable()
S
71 2 6
can_update_billing_card()
S
66 2 8
set_payment_plan_completed_date()
S
68 2 8
at_maximum_renewals()
S
67 2 8
__construct()
S
72 2 6
get_gateway_subscription_id()
S
65 2 9
get_gateway_customer_id()
S
65 2 9
get_status()
S
65 2 9
has_upgrade_path()
S
68 2 7
get_recurring_amount()
S
70 2 7
get_initial_amount()
S
70 2 7
is_recurring()
S
64 2 9
set_recurring()
S
65 2 8
get_subscription_key()
S
67 2 8
get_created_date()
S
68 2 7
get_customer()
S
71 2 6
upgrade_possible()
S
68 2 7
get_currency()
S
82 1 3
get_object_type()
S
82 1 3
get_customer_id()
S
82 1 3
get_id()
S
82 1 3
get_payments()
S
67 1 8
has_payment_plan()
S
80 1 3
get_trial_end_date()
S
82 1 3
get_times_billed()
S
81 1 3
get_signup_method()
S
82 1 3
get_notes()
S
82 1 3
expire()
S
71 1 5
get_upgraded_from()
S
82 1 3
is_disabled()
S
80 1 3
was_upgrade()
S
76 1 4
is_payment_plan_complete()
S
76 1 4
get_payment_plan_completed_date()
S
82 1 3
get_maximum_renewals()
S
82 1 3