HTL_Cart A

Total Complexity 72
Dependencies 3
Dependents 2
Total lines 609
Lines of code 258
Logical lines of code 161
Comment lines 223
Methods 28
Properties 11

Methods 28

Method Rating Maintainability Complexity Lines of code
get_cart_from_session()
A
46 13 35
calculate_totals()
S
53 4 24
check_cart_items()
S
57 4 19
check_cart_item_validity()
S
62 5 10
add_to_cart()
S
57 3 17
get_booking_form_url()
S
65 4 9
check_cart_item_availability()
S
60 3 12
set_quantity()
S
62 3 11
get_cart()
S
65 3 9
get_cart_for_session()
S
64 3 10
check_cart_item_for_extensions()
S
62 3 10
is_cancellable()
S
64 3 10
get_room_list_form_url()
S
62 2 12
set_session()
S
65 2 9
reset()
S
68 2 7
get_cart_item()
S
78 2 3
remove_cart_item()
S
69 2 7
__construct()
S
74 1 4
init()
S
67 1 7
empty_cart()
S
67 1 8
is_empty()
S
79 1 3
needs_payment()
S
78 1 3
generate_cart_item_key()
S
79 1 3
get_total()
S
79 1 3
get_subtotal()
S
79 1 3
get_tax_total()
S
79 1 3
get_required_deposit()
S
79 1 3
get_room_price()
S
75 1 4