-
Home
-
Headless WooCommerce Made Easy with CoCart
-
3.10.6
-
Code
-
Classes
- CoCart_Add_Item_Controller
Total Complexity |
27 |
Dependencies |
3 |
Dependents |
0 |
Total lines |
365 |
Lines of code |
196 |
Logical lines of code |
76 |
Comment lines |
128 |
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 |
49 |
3 |
29 |
get_collection_params() |
S |
46 |
1 |
46 |
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 |