Skip to content

Commit 316634c

Browse files
Simplify code product alert email
1 parent 2e78aca commit 316634c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

app/code/Magento/ProductAlert/Model/Email.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ public function getType()
204204
*
205205
* @return $this
206206
*/
207-
public function setWebsite($website)
207+
public function setWebsite(\Magento\Store\Model\Website $website)
208208
{
209209
$this->_website = $website;
210210
return $this;
@@ -273,7 +273,7 @@ public function clean()
273273
*
274274
* @return $this
275275
*/
276-
public function addPriceProduct($product)
276+
public function addPriceProduct(\Magento\Catalog\Model\Product $product)
277277
{
278278
$this->_priceProducts[$product->getId()] = $product;
279279
return $this;
@@ -286,7 +286,7 @@ public function addPriceProduct($product)
286286
*
287287
* @return $this
288288
*/
289-
public function addStockProduct($product)
289+
public function addStockProduct(\Magento\Catalog\Model\Product $product)
290290
{
291291
$this->_stockProducts[$product->getId()] = $product;
292292
return $this;

0 commit comments

Comments
 (0)