Fixed docblocks #10978

This commit is contained in:
Claudio Sanches 2016-05-25 13:27:20 -03:00
parent 6c20051025
commit 8a62aedad4
1 changed files with 12 additions and 12 deletions

View File

@ -1061,6 +1061,18 @@ class WC_REST_Orders_Controller extends WC_REST_Posts_Controller {
return $order_statuses;
}
/**
* Create base WC Order object.
*
* @since 2.6.0
* @param array $args Order args.
* @param WP_REST_Request $request Full details about the request.
* @return WC_Order
*/
protected function create_base_order( $args, $data ) {
return wc_create_order( $args );
}
/**
* Get the Order's schema, conforming to JSON Schema.
*
@ -1718,16 +1730,4 @@ class WC_REST_Orders_Controller extends WC_REST_Posts_Controller {
return $params;
}
/**
* Create base WC Order object.
*
* @since 2.6
* @param array $args
* @param array $data
* @return WC_Order
*/
protected function create_base_order( $args, $data ) {
return wc_create_order( $args );
}
}