@@ -40,7 +40,7 @@ public function getName(): string
40
40
/**
41
41
* Sets the name of the product item.
42
42
*
43
- * @param string $name
43
+ * @param string $name
44
44
* @return CreateOrderApiProductItemInterface
45
45
*/
46
46
public function setName (string $ name ): CreateOrderApiProductItemInterface
@@ -61,7 +61,7 @@ public function getSku(): string
61
61
/**
62
62
* Sets the SKU of the product item.
63
63
*
64
- * @param string $sku
64
+ * @param string $sku
65
65
* @return CreateOrderApiProductItemInterface
66
66
*/
67
67
public function setSku (string $ sku ): CreateOrderApiProductItemInterface
@@ -82,7 +82,7 @@ public function getPerUnitBasePrice(): float
82
82
/**
83
83
* Sets the per unit base price of the product item.
84
84
*
85
- * @param float $perUnitBasePrice
85
+ * @param float $perUnitBasePrice
86
86
* @return CreateOrderApiProductItemInterface
87
87
*/
88
88
public function setPerUnitBasePrice (float $ perUnitBasePrice ): CreateOrderApiProductItemInterface
@@ -103,7 +103,7 @@ public function getNetPrice(): float
103
103
/**
104
104
* Sets the net price of the product item.
105
105
*
106
- * @param float $netPrice
106
+ * @param float $netPrice
107
107
* @return CreateOrderApiProductItemInterface
108
108
*/
109
109
public function setNetPrice (float $ netPrice ): CreateOrderApiProductItemInterface
@@ -124,7 +124,7 @@ public function getSubTotalPrice(): float
124
124
/**
125
125
* Sets the subtotal price of the product item.
126
126
*
127
- * @param float $subTotalPrice
127
+ * @param float $subTotalPrice
128
128
* @return CreateOrderApiProductItemInterface
129
129
*/
130
130
public function setSubTotalPrice (float $ subTotalPrice ): CreateOrderApiProductItemInterface
@@ -145,7 +145,7 @@ public function getTax(): float
145
145
/**
146
146
* Sets the tax amount of the product item.
147
147
*
148
- * @param float $tax
148
+ * @param float $tax
149
149
* @return CreateOrderApiProductItemInterface
150
150
*/
151
151
public function setTax (float $ tax ): CreateOrderApiProductItemInterface
@@ -166,7 +166,7 @@ public function getTaxRate(): float
166
166
/**
167
167
* Sets the tax rate of the product item.
168
168
*
169
- * @param float $taxRate
169
+ * @param float $taxRate
170
170
* @return CreateOrderApiProductItemInterface
171
171
*/
172
172
public function setTaxRate (float $ taxRate ): CreateOrderApiProductItemInterface
@@ -187,7 +187,7 @@ public function getQuantity(): int
187
187
/**
188
188
* Sets the quantity of the product item.
189
189
*
190
- * @param int $quantity
190
+ * @param int $quantity
191
191
* @return CreateOrderApiProductItemInterface
192
192
*/
193
193
public function setQuantity (int $ quantity ): CreateOrderApiProductItemInterface
@@ -198,17 +198,17 @@ public function setQuantity(int $quantity): CreateOrderApiProductItemInterface
198
198
/**
199
199
* Retrieves the discount applied to the product item.
200
200
*
201
- * @return CreateOrderApiDiscountInterface
201
+ * @return CreateOrderApiDiscountInterface | null
202
202
*/
203
- public function getDiscount (): CreateOrderApiDiscountInterface
203
+ public function getDiscount (): ? CreateOrderApiDiscountInterface
204
204
{
205
205
return $ this ->_getData (self ::DATA_DISCOUNT );
206
206
}
207
207
208
208
/**
209
209
* Sets the discount applied to the product item.
210
210
*
211
- * @param CreateOrderApiDiscountInterface $discount
211
+ * @param CreateOrderApiDiscountInterface $discount
212
212
* @return CreateOrderApiProductItemInterface
213
213
*/
214
214
public function setDiscount (CreateOrderApiDiscountInterface $ discount ): CreateOrderApiProductItemInterface
0 commit comments