-
Home
-
Headless WooCommerce Made Easy with CoCart
-
4.0.2
-
Code
-
Classes
- CoCart_REST_Add_Item_V2_Controller
Total Complexity |
31 |
Dependencies |
6 |
Dependents |
0 |
Total lines |
531 |
Lines of code |
239 |
Logical lines of code |
94 |
Comment lines |
238 |
Methods |
8 |
Properties |
2 |
Methods 8
Method |
Rating |
Maintainability
|
Complexity
|
Lines of code
|
add_to_cart() |
B |
40 |
18 |
56 |
add_item_to_cart() |
S |
45 |
5 |
42 |
get_collection_params() |
S |
44 |
1 |
53 |
get_item_schema() |
S |
45 |
1 |
49 |
register_routes() |
S |
59 |
1 |
16 |
add_to_cart_handler_simple() |
S |
65 |
2 |
9 |
add_to_cart_handler_variable() |
S |
64 |
2 |
9 |
get_public_item_schema() |
S |
73 |
1 |
5 |