您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

25 行
664B

  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. }