-
Home
-
Payment forms, Buy now buttons, and Invoicing System | GetPaid
-
2.8.4
-
Code
-
Classes
- GetPaid_Payment_Form_Submission_Discount
Total Complexity |
23 |
Dependencies |
2 |
Dependents |
1 |
Total lines |
166 |
Lines of code |
63 |
Logical lines of code |
37 |
Comment lines |
67 |
Methods |
7 |
Properties |
1 |
Methods 7
Method |
Rating |
Maintainability
|
Complexity
|
Lines of code
|
process_discount() |
S |
58 |
4 |
15 |
__construct() |
S |
59 |
4 |
14 |
validate_single_use_discount() |
S |
61 |
4 |
12 |
is_discount_active() |
S |
78 |
4 |
3 |
get_user_id_or_email() |
S |
70 |
3 |
6 |
validate_discount_amount() |
S |
63 |
3 |
10 |
calculate_discount() |
S |
79 |
1 |
3 |