-
Home
-
Headless WooCommerce Made Easy with CoCart
-
4.0.2
-
Code
-
Classes
- CoCart_Session_Handler
Total Complexity |
110 |
Dependencies |
3 |
Dependents |
7 |
Total lines |
891 |
Lines of code |
370 |
Logical lines of code |
187 |
Comment lines |
456 |
Methods |
39 |
Properties |
6 |
Methods 39
Method |
Rating |
Maintainability
|
Complexity
|
Lines of code
|
init_session_cookie() |
A |
46 |
14 |
36 |
save_cart() |
A |
49 |
8 |
30 |
get_session_cookie() |
S |
54 |
7 |
20 |
cocart_setcookie() |
S |
58 |
7 |
12 |
set_customer_cart_cookie() |
S |
54 |
6 |
19 |
create_new_cart() |
S |
52 |
5 |
26 |
get_cart() |
S |
53 |
5 |
23 |
init() |
S |
57 |
5 |
16 |
has_session() |
S |
61 |
5 |
13 |
is_cart_data_valid() |
S |
64 |
5 |
9 |
generate_customer_id() |
S |
59 |
4 |
13 |
get_customer_unique_id() |
S |
65 |
4 |
9 |
set_cart_hash() |
S |
66 |
3 |
7 |
nonce_user_logged_out() |
S |
78 |
3 |
3 |
cleanup_sessions() |
S |
62 |
2 |
12 |
get_cart_data() |
S |
78 |
2 |
3 |
use_secure_cookie() |
S |
78 |
2 |
3 |
use_httponly() |
S |
70 |
2 |
7 |
update_cart() |
S |
62 |
1 |
13 |
delete_cart() |
S |
71 |
1 |
5 |
update_cart_timestamp() |
S |
65 |
1 |
10 |
get_cart_source() |
S |
65 |
1 |
10 |
get_cart_expiration() |
S |
65 |
1 |
10 |
get_cart_created() |
S |
65 |
1 |
10 |
get_session() |
S |
79 |
1 |
3 |
__construct() |
S |
74 |
1 |
4 |
destroy_cart() |
S |
77 |
1 |
4 |
forget_session() |
S |
82 |
1 |
3 |
forget_cart() |
S |
72 |
1 |
6 |
destroy_cookie() |
S |
77 |
1 |
3 |
destroy_session() |
S |
82 |
1 |
3 |
save_data() |
S |
81 |
1 |
3 |
get_cache_prefix() |
S |
80 |
1 |
3 |
get_session_data() |
S |
81 |
1 |
3 |
set_cart_expiration() |
S |
73 |
1 |
4 |
get_cookie_name() |
S |
82 |
1 |
3 |
set_customer_session_cookie() |
S |
81 |
1 |
3 |
is_cookie_supported() |
S |
79 |
1 |
3 |
get_table_name() |
S |
82 |
1 |
3 |