-
Home
-
Headless WooCommerce Made Easy with CoCart
-
3.8.0
-
Code
-
Classes
- CoCart_Add_Item_v2_Controller
Total Complexity |
32 |
Dependencies |
5 |
Dependents |
0 |
Total lines |
478 |
Lines of code |
231 |
Logical lines of code |
91 |
Comment lines |
195 |
Methods |
8 |
Properties |
2 |
Methods 8
Method |
Rating |
Maintainability
|
Complexity
|
Lines of code
|
add_to_cart() |
B |
40 |
17 |
53 |
add_item_to_cart() |
S |
45 |
5 |
39 |
get_collection_params() |
S |
45 |
1 |
52 |
get_item_schema() |
S |
45 |
1 |
48 |
rest_validate_quantity_arg() |
S |
71 |
3 |
6 |
register_routes() |
S |
60 |
1 |
15 |
add_to_cart_handler_simple() |
S |
65 |
2 |
9 |
add_to_cart_handler_variable() |
S |
64 |
2 |
9 |