-
Home
-
Discount Rules and Dynamic Pricing for WooCommerce
-
7.1.0
-
Code
-
Classes
- WCCS_Cart_Discount
Total Complexity |
125 |
Dependencies |
3 |
Dependents |
1 |
Total lines |
418 |
Lines of code |
312 |
Logical lines of code |
205 |
Comment lines |
15 |
Methods |
11 |
Properties |
7 |
Methods 11
Method |
Rating |
Maintainability
|
Complexity
|
Lines of code
|
get_discount_data() |
D |
30 |
39 |
109 |
get_possible_discounts() |
B |
44 |
17 |
45 |
get_valid_discounts() |
B |
46 |
17 |
35 |
get_discount_amount() |
A |
46 |
14 |
40 |
get_manual_coupon() |
A |
50 |
13 |
27 |
is_manual_coupon() |
S |
62 |
7 |
11 |
get_coupon_codes() |
S |
60 |
5 |
15 |
is_cart_discount_coupon() |
S |
62 |
5 |
10 |
get_combine_coupon_code() |
S |
65 |
4 |
8 |
__construct() |
S |
64 |
3 |
9 |
get_discounts() |
S |
82 |
1 |
3 |