浏览代码

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;
}

正在加载...
取消
保存