-
Home
-
Payment forms, Buy now buttons, and Invoicing System | GetPaid
-
2.8.4
-
Code
-
Classes
- WPInv_Subscription
Total Complexity |
151 |
Dependencies |
7 |
Dependents |
15 |
Total lines |
1,272 |
Lines of code |
477 |
Logical lines of code |
238 |
Comment lines |
593 |
Methods |
82 |
Properties |
4 |
Methods 82
Method |
Rating |
Maintainability
|
Complexity
|
Lines of code
|
create_payment() |
A |
47 |
11 |
33 |
__construct() |
A |
55 |
9 |
18 |
add_payment() |
A |
53 |
8 |
24 |
get_subscription_id_by_field() |
A |
49 |
7 |
31 |
set_status() |
S |
60 |
5 |
13 |
status_transition() |
S |
53 |
4 |
21 |
clear_cache() |
S |
60 |
4 |
13 |
get_expiration_time() |
S |
66 |
4 |
8 |
renew() |
S |
58 |
3 |
14 |
get_child_payments() |
S |
58 |
2 |
16 |
expire() |
S |
68 |
3 |
7 |
get_times_billed() |
S |
68 |
3 |
7 |
is_expired() |
S |
77 |
3 |
3 |
set_next_renewal_date() |
S |
66 |
3 |
8 |
set_created() |
S |
66 |
3 |
8 |
activate() |
S |
71 |
3 |
5 |
is_last_renewal() |
S |
74 |
2 |
4 |
_isset() |
S |
77 |
2 |
3 |
create() |
S |
72 |
2 |
6 |
complete() |
S |
69 |
2 |
7 |
get_time_created() |
S |
74 |
2 |
4 |
get_date_created_gmt() |
S |
70 |
2 |
7 |
get_status_class() |
S |
74 |
2 |
4 |
set_frequency() |
S |
74 |
2 |
4 |
get_next_renewal_date_gmt() |
S |
70 |
2 |
7 |
is_active() |
S |
79 |
2 |
3 |
get_renew_url() |
S |
63 |
1 |
12 |
get_initial_amount() |
S |
78 |
1 |
3 |
get_parent_invoice_id() |
S |
79 |
1 |
3 |
get_customer() |
S |
80 |
1 |
3 |
get_total_payments() |
S |
79 |
1 |
3 |
after_add_payment() |
S |
67 |
1 |
7 |
get_parent_payment_id() |
S |
80 |
1 |
3 |
get_original_payment_id() |
S |
80 |
1 |
3 |
get_parent_invoice() |
S |
80 |
1 |
3 |
update() |
S |
80 |
1 |
3 |
get_customer_id() |
S |
79 |
1 |
3 |
get_cancellable_statuses() |
S |
78 |
1 |
3 |
failing() |
S |
77 |
1 |
4 |
cancel() |
S |
77 |
1 |
4 |
can_cancel() |
S |
78 |
1 |
3 |
get_cancel_url() |
S |
74 |
1 |
4 |
get_view_url() |
S |
71 |
1 |
5 |
can_renew() |
S |
79 |
1 |
3 |
can_update() |
S |
79 |
1 |
3 |
get_update_url() |
S |
66 |
1 |
9 |
get_status_label() |
S |
80 |
1 |
3 |
get_status_label_html() |
S |
69 |
1 |
6 |
payment_exists() |
S |
75 |
1 |
4 |
save() |
S |
74 |
1 |
5 |
get_parent_payment() |
S |
80 |
1 |
3 |
has_status() |
S |
78 |
1 |
3 |
has_trial_period() |
S |
76 |
1 |
4 |
set_parent_payment_id() |
S |
81 |
1 |
3 |
get_bill_times() |
S |
79 |
1 |
3 |
get_transaction_id() |
S |
79 |
1 |
3 |
get_created() |
S |
79 |
1 |
3 |
get_date_created() |
S |
80 |
1 |
3 |
get_next_renewal_date() |
S |
79 |
1 |
3 |
get_expiration() |
S |
80 |
1 |
3 |
get_frequency() |
S |
79 |
1 |
3 |
get_trial_period() |
S |
79 |
1 |
3 |
get_status() |
S |
79 |
1 |
3 |
get_profile_id() |
S |
79 |
1 |
3 |
set_customer_id() |
S |
79 |
1 |
3 |
set_parent_invoice_id() |
S |
79 |
1 |
3 |
set_original_payment_id() |
S |
81 |
1 |
3 |
get_recurring_amount() |
S |
78 |
1 |
3 |
set_product_id() |
S |
79 |
1 |
3 |
set_period() |
S |
80 |
1 |
3 |
set_initial_amount() |
S |
79 |
1 |
3 |
set_recurring_amount() |
S |
79 |
1 |
3 |
set_bill_times() |
S |
79 |
1 |
3 |
get_period() |
S |
79 |
1 |
3 |
get_gateway() |
S |
80 |
1 |
3 |
set_date_created() |
S |
81 |
1 |
3 |
get_product() |
S |
80 |
1 |
3 |
set_expiration() |
S |
81 |
1 |
3 |
set_trial_period() |
S |
80 |
1 |
3 |
get_product_id() |
S |
79 |
1 |
3 |
set_profile_id() |
S |
79 |
1 |
3 |
set_transaction_id() |
S |
79 |
1 |
3 |