瀏覽代碼

Merge branch 'develop'

master
Guillaume 3 年之前
父節點
當前提交
df3575fd13
共有 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…
取消
儲存