@@ -60,7 +60,7 @@ |
||
| 60 | 60 | /** |
| 61 | 61 | * Get order item. |
| 62 | 62 | * @param int |
| 63 | - * @return WC_Order_Item|bool |
|
| 63 | + * @return WC_Order_Item |
|
| 64 | 64 | */ |
| 65 | 65 | public static function get_order_item( $item_id = 0 ) { |
| 66 | 66 | global $wpdb; |
@@ -117,7 +117,7 @@ |
||
| 117 | 117 | |
| 118 | 118 | /** |
| 119 | 119 | * Get the associated product. |
| 120 | - * @return WC_Product|bool |
|
| 120 | + * @return WC_Product |
|
| 121 | 121 | */ |
| 122 | 122 | public function get_product() { |
| 123 | 123 | if ( $this->get_variation_id() ) { |
@@ -79,7 +79,6 @@ discard block |
||
| 79 | 79 | |
| 80 | 80 | /** |
| 81 | 81 | * Constructor. |
| 82 | - * @param int|object $order_item ID to load from the DB (optional) or already queried data. |
|
| 83 | 82 | */ |
| 84 | 83 | public function __construct( $item = 0 ) { |
| 85 | 84 | if ( $item instanceof WC_Order_Item ) { |
@@ -111,7 +110,7 @@ discard block |
||
| 111 | 110 | |
| 112 | 111 | /** |
| 113 | 112 | * Type checking |
| 114 | - * @param string $Type |
|
| 113 | + * @param string $type |
|
| 115 | 114 | * @return boolean |
| 116 | 115 | */ |
| 117 | 116 | public function is_type( $type ) { |
@@ -240,7 +239,8 @@ discard block |
||
| 240 | 239 | |
| 241 | 240 | /** |
| 242 | 241 | * Set meta data. |
| 243 | - * @param array $data Key/Value pairs |
|
| 242 | + * @param string $key |
|
| 243 | + * @param string $value |
|
| 244 | 244 | */ |
| 245 | 245 | public function add_meta_data( $key, $value, $unique = false ) { |
| 246 | 246 | if ( $unique ) { |