-
Home
-
Headless eCommerce API for Developers – CoCart
-
4.0.2
-
Code
-
Classes
- CoCart_Add_Item_Controller
| Total Complexity |
27 |
| Dependencies |
3 |
| Dependents |
0 |
| Total lines |
436 |
| Lines of code |
197 |
| Logical lines of code |
74 |
| Comment lines |
198 |
| Methods |
8 |
| Properties |
1 |
Methods 8
| Method |
Rating |
Maintainability
|
Complexity
|
Lines of code
|
| add_to_cart() |
A |
45 |
14 |
36 |
| add_item_to_cart() |
S |
48 |
3 |
32 |
| get_collection_params() |
S |
47 |
1 |
44 |
| get_item_schema() |
S |
47 |
1 |
43 |
| return_additional_item_data() |
S |
61 |
3 |
11 |
| register_routes() |
S |
60 |
1 |
15 |
| add_to_cart_handler_simple() |
S |
66 |
2 |
8 |
| add_to_cart_handler_variable() |
S |
66 |
2 |
8 |