@@ -44,7 +44,6 @@ discard block |
||
| 44 | 44 | |
| 45 | 45 | /** |
| 46 | 46 | * Constructor. |
| 47 | - * @param int|object|array $order_item ID to load from the DB (optional) or already queried data. |
|
| 48 | 47 | */ |
| 49 | 48 | public function __construct( $item = 0 ) { |
| 50 | 49 | if ( $item instanceof WC_Order_Item ) { |
@@ -75,7 +74,7 @@ discard block |
||
| 75 | 74 | |
| 76 | 75 | /** |
| 77 | 76 | * Type checking |
| 78 | - * @param string|array $Type |
|
| 77 | + * @param string|array $type |
|
| 79 | 78 | * @return boolean |
| 80 | 79 | */ |
| 81 | 80 | public function is_type( $type ) { |
@@ -45,7 +45,7 @@ discard block |
||
| 45 | 45 | /** |
| 46 | 46 | * Extend the abstract _data properties and then read the order object. |
| 47 | 47 | * |
| 48 | - * @param int|object|WC_Order $order Order to init. |
|
| 48 | + * @param integer $order Order to init. |
|
| 49 | 49 | */ |
| 50 | 50 | public function __construct( $order = 0 ) { |
| 51 | 51 | $this->_data = array_merge( $this->_data, array( |
@@ -379,6 +379,7 @@ discard block |
||
| 379 | 379 | /** |
| 380 | 380 | * Updates status of order immediately. |
| 381 | 381 | * @uses WC_Order::set_status() |
| 382 | + * @param string $new_status |
|
| 382 | 383 | */ |
| 383 | 384 | public function update_status( $new_status, $note = '', $manual = false ) { |
| 384 | 385 | if ( ! $this->get_id() ) { |
@@ -115,7 +115,7 @@ discard block |
||
| 115 | 115 | /** |
| 116 | 116 | * Get post types. |
| 117 | 117 | * |
| 118 | - * @return array |
|
| 118 | + * @return string[] |
|
| 119 | 119 | */ |
| 120 | 120 | protected function get_post_types() { |
| 121 | 121 | return array( 'product', 'product_variation' ); |
@@ -817,7 +817,7 @@ discard block |
||
| 817 | 817 | /** |
| 818 | 818 | * Save downloadable files. |
| 819 | 819 | * |
| 820 | - * @param in $product_id |
|
| 820 | + * @param integer $product_id |
|
| 821 | 821 | * @param array $downloads |
| 822 | 822 | * @param int $variation_id |
| 823 | 823 | */ |
@@ -115,7 +115,7 @@ |
||
| 115 | 115 | /** |
| 116 | 116 | * Get post types. |
| 117 | 117 | * |
| 118 | - * @return array |
|
| 118 | + * @return string[] |
|
| 119 | 119 | */ |
| 120 | 120 | protected function get_post_types() { |
| 121 | 121 | return array( 'product', 'product_variation' ); |
@@ -341,7 +341,7 @@ |
||
| 341 | 341 | * Outputs hidden form inputs for each query string variable. |
| 342 | 342 | * @since 2.7.0 |
| 343 | 343 | * @param array $values Name value pairs. |
| 344 | - * @param array $exclude Keys to exclude. |
|
| 344 | + * @param string[] $exclude Keys to exclude. |
|
| 345 | 345 | * @param string $current_key Current key we are outputting. |
| 346 | 346 | */ |
| 347 | 347 | function wc_query_string_form_fields( $values = null, $exclude = array(), $current_key = '', $return = false ) { |
@@ -129,7 +129,7 @@ discard block |
||
| 129 | 129 | * |
| 130 | 130 | * @uses `wp_footer` action hook |
| 131 | 131 | * @uses `woocommerce_email_order_details` action hook |
| 132 | - * @param bool|array|string $requested_types (default: true) |
|
| 132 | + * @param string $requested_types (default: true) |
|
| 133 | 133 | * @return bool |
| 134 | 134 | */ |
| 135 | 135 | public function output_structured_data( $requested_types = true ) { |
@@ -157,8 +157,8 @@ discard block |
||
| 157 | 157 | * |
| 158 | 158 | * @param string $type |
| 159 | 159 | * @param mixed $object |
| 160 | - * @param mixed $param_1 (default: null) |
|
| 161 | - * @param mixed $param_2 (default: null) |
|
| 160 | + * @param boolean $param_1 (default: null) |
|
| 161 | + * @param boolean $param_2 (default: null) |
|
| 162 | 162 | * @param mixed $param_3 (default: null) |
| 163 | 163 | * @return bool |
| 164 | 164 | */ |
@@ -539,7 +539,6 @@ |
||
| 539 | 539 | /** |
| 540 | 540 | * Create or update an order shipping method. |
| 541 | 541 | * |
| 542 | - * @param $posted $shipping Item data. |
|
| 543 | 542 | * @param string $action 'create' to add shipping or 'update' to update it. |
| 544 | 543 | * @throws WC_REST_Exception Invalid data, server error. |
| 545 | 544 | */ |
@@ -597,8 +597,8 @@ discard block |
||
| 597 | 597 | * WooCommerce Order Item Meta API - Update term meta. |
| 598 | 598 | * |
| 599 | 599 | * @access public |
| 600 | - * @param mixed $item_id |
|
| 601 | - * @param mixed $meta_key |
|
| 600 | + * @param integer $item_id |
|
| 601 | + * @param string $meta_key |
|
| 602 | 602 | * @param mixed $meta_value |
| 603 | 603 | * @param string $prev_value (default: '') |
| 604 | 604 | * @return bool |
@@ -617,7 +617,7 @@ discard block |
||
| 617 | 617 | * |
| 618 | 618 | * @access public |
| 619 | 619 | * @param mixed $item_id |
| 620 | - * @param mixed $meta_key |
|
| 620 | + * @param string $meta_key |
|
| 621 | 621 | * @param mixed $meta_value |
| 622 | 622 | * @param bool $unique (default: false) |
| 623 | 623 | * @return int New row ID or 0 |
@@ -655,7 +655,7 @@ discard block |
||
| 655 | 655 | * |
| 656 | 656 | * @access public |
| 657 | 657 | * @param mixed $item_id |
| 658 | - * @param mixed $key |
|
| 658 | + * @param string $key |
|
| 659 | 659 | * @param bool $single (default: true) |
| 660 | 660 | * @return mixed |
| 661 | 661 | */ |
@@ -40,7 +40,6 @@ discard block |
||
| 40 | 40 | |
| 41 | 41 | /** |
| 42 | 42 | * Add a tax row to the order. |
| 43 | - * @param array $args |
|
| 44 | 43 | * @param int $tax_amount amount of tax. |
| 45 | 44 | * @param int $shipping_tax_amount shipping amount. |
| 46 | 45 | * @return int order item ID |
@@ -64,6 +63,7 @@ discard block |
||
| 64 | 63 | /** |
| 65 | 64 | * Add a shipping row to the order. |
| 66 | 65 | * @param WC_Shipping_Rate shipping_rate |
| 66 | + * @param WC_Shipping_Rate $shipping_rate |
|
| 67 | 67 | * @return int order item ID |
| 68 | 68 | */ |
| 69 | 69 | public function add_shipping( $shipping_rate ) { |
@@ -86,7 +86,7 @@ discard block |
||
| 86 | 86 | /** |
| 87 | 87 | * Add a fee to the order. |
| 88 | 88 | * Order must be saved prior to adding items. |
| 89 | - * @param object $fee |
|
| 89 | + * @param stdClass $fee |
|
| 90 | 90 | * @return int updated order item ID |
| 91 | 91 | */ |
| 92 | 92 | public function add_fee( $fee ) { |