-
Home
-
Accept Stripe Payments
-
2.0.95 (latest)
-
Code
-
Classes
- ASP_Product_Item
| Total Complexity |
182 |
| Dependencies |
5 |
| Dependents |
7 |
| Total lines |
821 |
| Lines of code |
603 |
| Logical lines of code |
376 |
| Comment lines |
87 |
| Methods |
51 |
| Properties |
20 |
Methods 51
| Method |
Rating |
Maintainability
|
Complexity
|
Lines of code
|
| validate_total_amount() |
B |
33 |
21 |
93 |
| calculate_regional_shipping_amount() |
A |
47 |
15 |
32 |
| 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 |
55 |
6 |
18 |
| get_download_url() |
S |
53 |
5 |
23 |
| set_price() |
S |
62 |
6 |
10 |
| get_tax() |
S |
60 |
5 |
13 |
| get_total() |
S |
56 |
4 |
18 |
| __construct() |
S |
59 |
4 |
13 |
| get_quantity() |
S |
61 |
4 |
13 |
| get_shipping() |
S |
62 |
4 |
12 |
| is_physical_product() |
S |
64 |
4 |
10 |
| calculate_total_surcharge() |
S |
61 |
3 |
12 |
| get_surcharge() |
S |
73 |
3 |
4 |
| 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 |
| get_surcharge_label() |
S |
73 |
2 |
4 |
| get_surcharge_type() |
S |
74 |
2 |
4 |
| 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 |