Nie możesz wybrać więcej, niż 25 tematów
Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
|
- <?php
-
- namespace Lc\CaracoleBundle\Factory\Credit;
-
- use App\Entity\Credit\CreditHistory;
- use Lc\CaracoleBundle\Model\Credit\CreditHistoryInterface;
- use Lc\CaracoleBundle\Model\User\UserMerchantInterface;
- use Lc\SovBundle\Factory\AbstractFactory;
- use Lc\SovBundle\Model\User\UserInterface;
-
- class CreditHistoryFactory extends AbstractFactory
- {
- // createCreditHistory
- public function create(string $type,UserMerchantInterface $userMerchant ): CreditHistoryInterface
- {
- $creditHistory = $this->createBase($userMerchant);
-
- $creditHistory->setType($type) ;
-
- return $creditHistory;
- }
-
- public function createBase(UserMerchantInterface $userMerchant): CreditHistoryInterface
- {
- $creditHistory = new CreditHistory();
- $creditHistory->setUserMerchant($userMerchant) ;
-
- return $creditHistory;
- }
-
- }
|