@@ -36,7 +36,6 @@ discard block |
||
| 36 | 36 | |
| 37 | 37 | /** |
| 38 | 38 | * Constructor. |
| 39 | - * @param int|object|array $order_item ID to load from the DB (optional) or already queried data. |
|
| 40 | 39 | */ |
| 41 | 40 | public function __construct( $item = 0 ) { |
| 42 | 41 | if ( $item instanceof WC_Order_Item ) { |
@@ -79,7 +78,7 @@ discard block |
||
| 79 | 78 | |
| 80 | 79 | /** |
| 81 | 80 | * Type checking |
| 82 | - * @param string|array $Type |
|
| 81 | + * @param string|array $type |
|
| 83 | 82 | * @return boolean |
| 84 | 83 | */ |
| 85 | 84 | public function is_type( $type ) { |
@@ -392,7 +391,6 @@ discard block |
||
| 392 | 391 | |
| 393 | 392 | /** |
| 394 | 393 | * Add meta data. |
| 395 | - * @param array $data Key/Value pairs |
|
| 396 | 394 | */ |
| 397 | 395 | public function add_meta_data( $key, $value, $unique = false ) { |
| 398 | 396 | if ( $unique ) { |
@@ -109,7 +109,7 @@ |
||
| 109 | 109 | /** |
| 110 | 110 | * Init/load the order object. Called from the constructor. |
| 111 | 111 | * |
| 112 | - * @param int|object|WC_Order $order Order to init. |
|
| 112 | + * @param integer $order Order to init. |
|
| 113 | 113 | */ |
| 114 | 114 | protected function init( $order ) { |
| 115 | 115 | if ( is_numeric( $order ) ) { |
@@ -26,7 +26,7 @@ discard block |
||
| 26 | 26 | /** |
| 27 | 27 | * Extend the abstract _data properties and then read the order object. |
| 28 | 28 | * |
| 29 | - * @param int|object|WC_Order $order Order to init. |
|
| 29 | + * @param integer $order Order to init. |
|
| 30 | 30 | */ |
| 31 | 31 | public function __construct( $order = 0 ) { |
| 32 | 32 | $this->_data = array_merge( $this->_data, array( |
@@ -308,7 +308,6 @@ discard block |
||
| 308 | 308 | * @since 2.6.0 |
| 309 | 309 | * @param string $new_status Status to change the order to. No internal wc- prefix is required. |
| 310 | 310 | * @param string $note (default: '') Optional note to add. |
| 311 | - * @param bool $manual is this a manual order status change? |
|
| 312 | 311 | * @param array details of change |
| 313 | 312 | */ |
| 314 | 313 | public function set_status( $new_status, $note = '', $manual_update = false ) { |
@@ -948,6 +947,7 @@ discard block |
||
| 948 | 947 | |
| 949 | 948 | /** |
| 950 | 949 | * See if order matches cart_hash. |
| 950 | + * @param string $cart_hash |
|
| 951 | 951 | * @return bool |
| 952 | 952 | */ |
| 953 | 953 | public function has_cart_hash( $cart_hash ) { |