You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

CreditHistoryFactory.php 664B

3 년 전
3 년 전
3 년 전
3 년 전
3 년 전
3 년 전
123456789101112131415161718192021222324
  1. <?php
  2. namespace Lc\CaracoleBundle\Factory\Credit;
  3. use App\Entity\Credit\CreditHistory;
  4. use Lc\CaracoleBundle\Model\Credit\CreditHistoryInterface;
  5. use Lc\CaracoleBundle\Model\User\UserMerchantInterface;
  6. use Lc\SovBundle\Factory\AbstractFactory;
  7. use Lc\SovBundle\Model\User\UserInterface;
  8. class CreditHistoryFactory extends AbstractFactory
  9. {
  10. // createCreditHistory
  11. public function create(string $type, UserMerchantInterface $userMerchant): CreditHistoryInterface
  12. {
  13. $creditHistory = new CreditHistory();
  14. $creditHistory->setType($type) ;
  15. $creditHistory->setUserMerchant($userMerchant) ;
  16. return $creditHistory;
  17. }
  18. }