-
Home
-
Headless eCommerce API for Developers – CoCart
-
4.7.0
-
Code
-
Classes
- CoCart_Cart_Cache
| Total Complexity |
32 |
| Dependencies |
2 |
| Dependents |
1 |
| Total lines |
266 |
| Lines of code |
89 |
| Logical lines of code |
52 |
| Comment lines |
156 |
| Methods |
10 |
| Properties |
1 |
Methods 10
| Method |
Rating |
Maintainability
|
Complexity
|
Lines of code
|
| calculate_cached_items() |
S |
58 |
7 |
15 |
| remove_cached_item() |
S |
58 |
5 |
16 |
| set_new_price() |
S |
61 |
5 |
11 |
| maybe_return_cached_price() |
S |
63 |
4 |
10 |
| set_cached_item() |
S |
64 |
3 |
9 |
| get_cart_contents_cached() |
S |
71 |
2 |
6 |
| get_cached_item() |
S |
74 |
2 |
4 |
| clear_cart_cached() |
S |
72 |
2 |
6 |
| __construct() |
S |
64 |
1 |
9 |
| does_product_allow_price_change() |
S |
78 |
1 |
3 |