-
Home
-
WP Hotelier
-
2.13.0
-
Code
-
Classes
- HTL_Cart
Total Complexity |
77 |
Dependencies |
3 |
Dependents |
2 |
Total lines |
662 |
Lines of code |
273 |
Logical lines of code |
169 |
Comment lines |
251 |
Methods |
31 |
Properties |
13 |
Methods 31
Method |
Rating |
Maintainability
|
Complexity
|
Lines of code
|
get_cart_from_session() |
A |
46 |
13 |
35 |
calculate_totals() |
S |
52 |
4 |
25 |
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 |
get_room_list_form_url() |
S |
61 |
3 |
12 |
set_quantity() |
S |
62 |
3 |
11 |
get_cart() |
S |
65 |
3 |
9 |
get_cart_for_session() |
S |
64 |
3 |
10 |
reset() |
S |
64 |
3 |
10 |
check_cart_item_for_extensions() |
S |
62 |
3 |
10 |
is_cancellable() |
S |
64 |
3 |
10 |
set_session() |
S |
65 |
2 |
9 |
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 |
66 |
1 |
9 |
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 |
set_coupon_id() |
S |
76 |
1 |
4 |
get_coupon_id() |
S |
79 |
1 |
3 |
get_discount_total() |
S |
79 |
1 |
3 |
get_room_price() |
S |
75 |
1 |
4 |