|
|
|
|
|
|
|
|
class ReductionCatalogFactory extends AbstractFactory |
|
|
class ReductionCatalogFactory extends AbstractFactory |
|
|
{ |
|
|
{ |
|
|
|
|
|
|
|
|
public function create(MerchantInterface $merchant): ReductionCatalogInterface |
|
|
|
|
|
|
|
|
public function create(MerchantInterface $merchant, int $status = 1): ReductionCatalogInterface |
|
|
{ |
|
|
{ |
|
|
$reductionCatalog = new ReductionCatalog(); |
|
|
$reductionCatalog = new ReductionCatalog(); |
|
|
|
|
|
|
|
|
$reductionCatalog->setMerchant($merchant); |
|
|
$reductionCatalog->setMerchant($merchant); |
|
|
$reductionCatalog->setStatus(1); |
|
|
|
|
|
|
|
|
$reductionCatalog->setStatus($status); |
|
|
|
|
|
|
|
|
return $reductionCatalog; |
|
|
return $reductionCatalog; |
|
|
} |
|
|
} |