-
Home
-
Easy Digital Downloads – eCommerce Payments and Subscriptions made easy
-
3.1.1.4
-
Code
-
Classes
- EDD_Discount
Total Complexity |
239 |
Dependencies |
3 |
Dependents |
12 |
Total lines |
1,869 |
Lines of code |
713 |
Logical lines of code |
455 |
Comment lines |
907 |
Methods |
47 |
Properties |
18 |
Methods 47
Method |
Rating |
Maintainability
|
Complexity
|
Lines of code
|
__get() |
D |
36 |
40 |
61 |
add() |
B |
40 |
19 |
57 |
setup_discount() |
B |
42 |
16 |
51 |
update() |
B |
43 |
16 |
48 |
is_used() |
A |
40 |
13 |
63 |
__set() |
A |
44 |
14 |
44 |
sanitize_columns() |
A |
44 |
13 |
44 |
is_product_requirements_met() |
A |
46 |
9 |
38 |
is_valid() |
A |
54 |
10 |
19 |
get_status_label() |
A |
51 |
8 |
27 |
convert_legacy_args() |
A |
49 |
7 |
31 |
is_active() |
S |
57 |
8 |
15 |
__construct() |
S |
56 |
6 |
19 |
decrease_usage() |
S |
58 |
5 |
15 |
is_expired() |
S |
59 |
5 |
14 |
increase_usage() |
S |
58 |
4 |
15 |
is_started() |
S |
59 |
4 |
14 |
is_maxed_out() |
S |
63 |
4 |
10 |
get_discounted_amount() |
S |
61 |
3 |
12 |
is_min_price_met() |
S |
62 |
3 |
10 |
__call() |
S |
68 |
3 |
6 |
get_scope() |
S |
67 |
3 |
7 |
exists() |
S |
72 |
2 |
6 |
edit_url() |
S |
64 |
1 |
11 |
get_status() |
S |
79 |
1 |
3 |
is_single_use() |
S |
78 |
1 |
3 |
find_by_name() |
S |
79 |
1 |
3 |
find_by_code() |
S |
79 |
1 |
3 |
array_convert() |
S |
80 |
1 |
3 |
__toString() |
S |
82 |
1 |
3 |
get_meta() |
S |
79 |
1 |
3 |
update_status() |
S |
69 |
1 |
6 |
get_type() |
S |
79 |
1 |
3 |
update_meta() |
S |
71 |
1 |
5 |
save() |
S |
73 |
1 |
5 |
get_once_per_customer() |
S |
78 |
1 |
3 |
get_is_single_use() |
S |
81 |
1 |
3 |
get_min_price() |
S |
78 |
1 |
3 |
get_code() |
S |
79 |
1 |
3 |
get_uses() |
S |
78 |
1 |
3 |
get_expiration() |
S |
79 |
1 |
3 |
get_start_date() |
S |
79 |
1 |
3 |
get_excluded_products() |
S |
78 |
1 |
3 |
get_product_condition() |
S |
79 |
1 |
3 |
get_product_reqs() |
S |
78 |
1 |
3 |
get_amount() |
S |
78 |
1 |
3 |
get_max_uses() |
S |
78 |
1 |
3 |