Du kan inte välja fler än 25 ämnen
Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.
|
- <?php
-
- namespace Lc\CaracoleBundle\Factory\Reduction;
-
- use App\Entity\Reduction\ReductionCredit;
- use Lc\CaracoleBundle\Model\Merchant\MerchantInterface;
- use Lc\CaracoleBundle\Model\Reduction\ReductionCreditInterface;
- use Lc\CaracoleBundle\Model\Reduction\ReductionCreditModel;
- use Lc\SovBundle\Factory\AbstractFactory;
-
- class ReductionCreditFactory extends AbstractFactory
- {
-
- public function create(MerchantInterface $merchant, string $type = ReductionCreditModel::TYPE_CREDIT): ReductionCreditInterface
- {
- $reductionCredit = new ReductionCredit();
-
- $reductionCredit->setMerchant($merchant);
- $reductionCredit->setType($type);
- $reductionCredit->setStatus(1);
-
- return $reductionCredit;
- }
-
- }
|