@@ -955,7 +955,7 @@ |
||
| 955 | 955 | * |
| 956 | 956 | * @param WP_REST_Request $request Full details about the request. |
| 957 | 957 | * @param WP_Post $post Post data. |
| 958 | - * @return int|WP_Error |
|
| 958 | + * @return integer |
|
| 959 | 959 | */ |
| 960 | 960 | protected function update_order( $request, $post ) { |
| 961 | 961 | try { |
@@ -95,7 +95,7 @@ discard block |
||
| 95 | 95 | * should be used. It is possible, but the aforementioned are preferred and are the only. |
| 96 | 96 | * methods that will be maintained going forward. |
| 97 | 97 | * |
| 98 | - * @param int|object|WC_Order $order Order to init. |
|
| 98 | + * @param integer $order Order to init. |
|
| 99 | 99 | */ |
| 100 | 100 | public function __construct( $order = 0 ) { |
| 101 | 101 | if ( is_numeric( $order ) && $order > 0 ) { |
@@ -216,6 +216,7 @@ discard block |
||
| 216 | 216 | /** |
| 217 | 217 | * Post meta update wrapper. Sets or deletes based on value. |
| 218 | 218 | * @since 2.7.0 |
| 219 | + * @param string $key |
|
| 219 | 220 | * @return bool Was it changed? |
| 220 | 221 | */ |
| 221 | 222 | protected function update_post_meta( $key, $value ) { |
@@ -1135,6 +1136,7 @@ discard block |
||
| 1135 | 1136 | * Add a shipping row to the order. |
| 1136 | 1137 | * Order must be saved prior to adding items. |
| 1137 | 1138 | * @param WC_Shipping_Rate shipping_rate |
| 1139 | + * @param WC_Shipping_Rate $shipping_rate |
|
| 1138 | 1140 | * @return int order item ID |
| 1139 | 1141 | */ |
| 1140 | 1142 | public function add_shipping( $shipping_rate ) { |
@@ -1159,7 +1161,7 @@ discard block |
||
| 1159 | 1161 | /** |
| 1160 | 1162 | * Add a fee to the order. |
| 1161 | 1163 | * Order must be saved prior to adding items. |
| 1162 | - * @param object $fee |
|
| 1164 | + * @param stdClass $fee |
|
| 1163 | 1165 | * @return int updated order item ID |
| 1164 | 1166 | */ |
| 1165 | 1167 | public function add_fee( $fee ) { |
@@ -1232,7 +1234,7 @@ discard block |
||
| 1232 | 1234 | * Calculate shipping total. |
| 1233 | 1235 | * |
| 1234 | 1236 | * @since 2.2 |
| 1235 | - * @return float |
|
| 1237 | + * @return string |
|
| 1236 | 1238 | */ |
| 1237 | 1239 | public function calculate_shipping() { |
| 1238 | 1240 | $shipping_total = 0; |