ASP_Product_Item D

Total Complexity 130
Dependencies 5
Dependents 6
Total lines 553
Lines of code 444
Logical lines of code 252
Comment lines 29
Methods 43
Properties 15

Methods 43

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_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_tax()
S
63 4 10
get_currency()
S
66 3 8
get_min_amount()
S
71 3 5
get_tax_amount()
S
61 2 12
is_currency_variable()
S
68 2 7
from_cents()
S
67 2 8
get_button_key()
S
70 2 6
in_cents()
S
67 2 8
get_button_text()
S
68 2 7
set_shipping()
S
79 2 3
get_redir_url()
S
68 2 7
get_description()
S
75 1 4
get_last_error()
S
82 1 3
get_product_id()
S
82 1 3
get_coupon()
S
82 1 3
get_button_class()
S
75 1 4
collect_billing_addr()
S
79 1 3
set_currency()
S
76 1 4
is_variable()
S
80 1 3
get_name()
S
77 1 4
get_stock_items()
S
75 1 4
set_quantity()
S
81 1 3
stock_control_enabled()
S
75 1 4
get_items()
S
82 1 3
add_item()
S
71 1 6
get_type()
S
75 1 4
get_thumb()
S
75 1 4
get_coupon_discount_amount()
S
71 1 6
get_meta()
S
79 1 3