ASP_Product_Item D

Total Complexity 150
Dependencies 5
Dependents 6
Total lines 694
Lines of code 521
Logical lines of code 317
Comment lines 67
Methods 45
Properties 20

Methods 45

Method Rating Maintainability Complexity Lines of code
validate_total_amount()
B
35 18 77
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
get_quantity()
S
61 4 13
__construct()
S
59 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
is_currency_variable()
S
68 2 7
set_shipping()
S
79 2 3
in_cents()
S
67 2 8
from_cents()
S
67 2 8
get_button_key()
S
70 2 6
get_button_text()
S
68 2 7
get_redir_url()
S
68 2 7
get_description()
S
75 1 4
get_meta()
S
79 1 3
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_items()
S
82 1 3
get_thumb()
S
75 1 4
set_quantity()
S
81 1 3
get_stock_items()
S
75 1 4
stock_control_enabled()
S
75 1 4
set_tax()
S
81 1 3
get_name()
S
77 1 4
get_type()
S
75 1 4
get_coupon_discount_amount()
S
71 1 6
add_item()
S
71 1 6