-
Home
-
Accept Stripe Payments
-
2.0.55
-
Code
-
Classes
- ASP_Product_Item
| Total Complexity |
132 |
| Dependencies |
5 |
| Dependents |
6 |
| Total lines |
560 |
| Lines of code |
450 |
| Logical lines of code |
255 |
| Comment lines |
29 |
| Methods |
44 |
| Properties |
15 |
Methods 44
| Method |
Rating |
Maintainability
|
Complexity
|
Lines of code
|
| load_coupon() |
A |
43 |
10 |
46 |
| get_price() |
A |
54 |
10 |
20 |
| get_discount_amount() |
A |
53 |
8 |
22 |
| apply_discount_to_amount() |
S |
56 |
7 |
18 |
| get_items_total() |
S |
58 |
7 |
14 |
| gen_item_data() |
S |
46 |
5 |
41 |
| check_coupon() |
S |
54 |
6 |
21 |
| load_from_product() |
S |
56 |
6 |
17 |
| __construct() |
S |
55 |
5 |
20 |
| set_price() |
S |
62 |
6 |
10 |
| get_tax() |
S |
60 |
5 |
13 |
| get_download_url() |
S |
54 |
4 |
23 |
| get_total() |
S |
56 |
4 |
18 |
| get_quantity() |
S |
61 |
4 |
13 |
| get_shipping() |
S |
62 |
4 |
12 |
| get_min_amount() |
S |
71 |
3 |
5 |
| get_currency() |
S |
66 |
3 |
8 |
| get_tax_amount() |
S |
61 |
2 |
12 |
| in_cents() |
S |
67 |
2 |
8 |
| from_cents() |
S |
67 |
2 |
8 |
| get_button_text() |
S |
68 |
2 |
7 |
| set_shipping() |
S |
79 |
2 |
3 |
| is_currency_variable() |
S |
68 |
2 |
7 |
| get_redir_url() |
S |
68 |
2 |
7 |
| get_button_key() |
S |
70 |
2 |
6 |
| get_last_error() |
S |
82 |
1 |
3 |
| get_product_id() |
S |
82 |
1 |
3 |
| get_button_class() |
S |
75 |
1 |
4 |
| get_stock_items() |
S |
75 |
1 |
4 |
| stock_control_enabled() |
S |
75 |
1 |
4 |
| set_tax() |
S |
81 |
1 |
3 |
| get_items() |
S |
82 |
1 |
3 |
| add_item() |
S |
71 |
1 |
6 |
| get_thumb() |
S |
75 |
1 |
4 |
| get_name() |
S |
77 |
1 |
4 |
| get_description() |
S |
75 |
1 |
4 |
| get_coupon_discount_amount() |
S |
71 |
1 |
6 |
| get_type() |
S |
75 |
1 |
4 |
| set_quantity() |
S |
81 |
1 |
3 |
| set_currency() |
S |
76 |
1 |
4 |
| is_variable() |
S |
80 |
1 |
3 |
| collect_billing_addr() |
S |
79 |
1 |
3 |
| get_coupon() |
S |
82 |
1 |
3 |
| get_meta() |
S |
79 |
1 |
3 |