Ver código fonte

Update ReductionCatalogFactory

packProduct
Guillaume 3 anos atrás
pai
commit
206e8e1745
1 arquivos alterados com 2 adições e 2 exclusões
  1. +2
    -2
      Factory/Reduction/ReductionCatalogFactory.php

+ 2
- 2
Factory/Reduction/ReductionCatalogFactory.php Ver arquivo

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

Carregando…
Cancelar
Salvar