-
Home
-
Payment forms, Buy now buttons, and Invoicing System | GetPaid
-
2.8.4
-
Code
-
Classes
- WPInv_Discount
Total Complexity |
173 |
Dependencies |
2 |
Dependents |
14 |
Total lines |
1,543 |
Lines of code |
571 |
Logical lines of code |
276 |
Comment lines |
752 |
Methods |
102 |
Properties |
5 |
Methods 102
Method |
Rating |
Maintainability
|
Complexity
|
Lines of code
|
get_data_by() |
B |
36 |
14 |
80 |
is_valid_for_user() |
A |
49 |
11 |
30 |
__construct() |
A |
51 |
10 |
25 |
get_discounted_amount() |
S |
57 |
5 |
18 |
is_valid_for_items() |
S |
61 |
5 |
12 |
get_discount_id_by_code() |
S |
52 |
4 |
26 |
increase_usage() |
S |
60 |
3 |
13 |
update_status() |
S |
71 |
3 |
6 |
has_exceeded_limit() |
S |
65 |
3 |
8 |
set_type() |
S |
72 |
3 |
5 |
is_required_items_met() |
S |
70 |
2 |
6 |
set_date_created() |
S |
67 |
2 |
8 |
get_max_total() |
S |
74 |
2 |
4 |
set_date_modified() |
S |
67 |
2 |
8 |
get_min_total() |
S |
74 |
2 |
4 |
is_expired() |
S |
73 |
2 |
4 |
get_max_uses() |
S |
74 |
2 |
4 |
get_usage() |
S |
70 |
2 |
6 |
has_started() |
S |
73 |
2 |
4 |
set_uses() |
S |
69 |
2 |
7 |
get_formatted_amount() |
S |
66 |
2 |
8 |
is_minimum_amount_met() |
S |
70 |
2 |
5 |
set_expiration() |
S |
65 |
2 |
9 |
get_date_created_gmt() |
S |
70 |
2 |
7 |
get_date_modified_gmt() |
S |
70 |
2 |
7 |
set_start() |
S |
65 |
2 |
9 |
get_amount() |
S |
77 |
2 |
3 |
is_maximum_amount_met() |
S |
70 |
2 |
5 |
__isset() |
S |
77 |
2 |
3 |
is_valid_for_amount() |
S |
79 |
2 |
3 |
set_is_recurring() |
S |
79 |
1 |
3 |
set_items() |
S |
79 |
1 |
3 |
set_allowed_items() |
S |
81 |
1 |
3 |
set_is_single_use() |
S |
79 |
1 |
3 |
set_required_items() |
S |
79 |
1 |
3 |
set_min_total() |
S |
79 |
1 |
3 |
set_minimum_total() |
S |
81 |
1 |
3 |
set_max_total() |
S |
79 |
1 |
3 |
set_max_uses() |
S |
79 |
1 |
3 |
set_excluded_items() |
S |
79 |
1 |
3 |
set_maximum_total() |
S |
81 |
1 |
3 |
get_status() |
S |
79 |
1 |
3 |
refresh() |
S |
98 |
1 |
1 |
has_required_items() |
S |
76 |
1 |
4 |
get_data_as_json() |
S |
81 |
1 |
3 |
remove() |
S |
81 |
1 |
3 |
is_single_use() |
S |
76 |
1 |
4 |
is_recurring() |
S |
76 |
1 |
4 |
has_maximum_amount() |
S |
76 |
1 |
4 |
has_minimum_amount() |
S |
76 |
1 |
4 |
has_excluded_items() |
S |
76 |
1 |
4 |
exists() |
S |
76 |
1 |
4 |
has_allowed_items() |
S |
76 |
1 |
4 |
has_start_date() |
S |
76 |
1 |
4 |
has_uses() |
S |
80 |
1 |
3 |
has_limit() |
S |
76 |
1 |
4 |
is_active() |
S |
80 |
1 |
3 |
is_type() |
S |
80 |
1 |
3 |
has_expiration_date() |
S |
76 |
1 |
4 |
set_discount_code() |
S |
81 |
1 |
3 |
set_end_date() |
S |
81 |
1 |
3 |
get_coupon_code() |
S |
80 |
1 |
3 |
get_type() |
S |
79 |
1 |
3 |
get_end_date() |
S |
80 |
1 |
3 |
get_expiration_date() |
S |
80 |
1 |
3 |
get_expiration() |
S |
79 |
1 |
3 |
get_start_date() |
S |
80 |
1 |
3 |
get_start() |
S |
79 |
1 |
3 |
get_discount_code() |
S |
80 |
1 |
3 |
get_code() |
S |
79 |
1 |
3 |
get_is_single_use() |
S |
79 |
1 |
3 |
get_author() |
S |
79 |
1 |
3 |
get_summary() |
S |
80 |
1 |
3 |
get_excerpt() |
S |
80 |
1 |
3 |
get_description() |
S |
79 |
1 |
3 |
get_title() |
S |
80 |
1 |
3 |
get_name() |
S |
79 |
1 |
3 |
get_date_modified() |
S |
79 |
1 |
3 |
get_date_created() |
S |
79 |
1 |
3 |
get_uses() |
S |
79 |
1 |
3 |
get_items() |
S |
78 |
1 |
3 |
set_expiration_date() |
S |
81 |
1 |
3 |
set_title() |
S |
81 |
1 |
3 |
set_start_date() |
S |
81 |
1 |
3 |
set_amount() |
S |
75 |
1 |
4 |
get_version() |
S |
79 |
1 |
3 |
set_coupon_code() |
S |
81 |
1 |
3 |
set_author() |
S |
79 |
1 |
3 |
set_summary() |
S |
81 |
1 |
3 |
set_excerpt() |
S |
81 |
1 |
3 |
set_description() |
S |
75 |
1 |
4 |
set_name() |
S |
75 |
1 |
4 |
get_allowed_items() |
S |
80 |
1 |
3 |
set_version() |
S |
80 |
1 |
3 |
set_status() |
S |
67 |
1 |
8 |
get() |
S |
79 |
1 |
3 |
get_maximum_total() |
S |
80 |
1 |
3 |
get_minimum_total() |
S |
80 |
1 |
3 |
get_is_recurring() |
S |
79 |
1 |
3 |
get_required_items() |
S |
78 |
1 |
3 |
get_excluded_items() |
S |
78 |
1 |
3 |
set_code() |
S |
75 |
1 |
4 |