瀏覽代碼

Update ReductionCatalogFactory

packProduct
Guillaume 3 年之前
父節點
當前提交
206e8e1745
共有 1 個檔案被更改,包括 2 行新增2 行删除
  1. +2
    -2
      Factory/Reduction/ReductionCatalogFactory.php

+ 2
- 2
Factory/Reduction/ReductionCatalogFactory.php 查看文件

@@ -10,12 +10,12 @@ use Lc\SovBundle\Factory\AbstractFactory;
class ReductionCatalogFactory extends AbstractFactory
{

public function create(MerchantInterface $merchant): ReductionCatalogInterface
public function create(MerchantInterface $merchant, int $status = 1): ReductionCatalogInterface
{
$reductionCatalog = new ReductionCatalog();

$reductionCatalog->setMerchant($merchant);
$reductionCatalog->setStatus(1);
$reductionCatalog->setStatus($status);

return $reductionCatalog;
}

Loading…
取消
儲存