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

UserPointSaleFactory.php 625B

12345678910111213141516171819202122
  1. <?php
  2. namespace Lc\CaracoleBundle\Factory\User;
  3. use App\Entity\User\UserPointSale;
  4. use Lc\CaracoleBundle\Model\PointSale\PointSaleInterface;
  5. use Lc\CaracoleBundle\Model\User\UserPointSaleInterface;
  6. use Lc\SovBundle\Factory\AbstractFactory;
  7. use Lc\SovBundle\Model\User\UserInterface;
  8. class UserPointSaleFactory extends AbstractFactory
  9. {
  10. public function create(UserInterface $user, PointSaleInterface $pointSale): UserPointSaleInterface
  11. {
  12. $userPointSale = new UserPointSale();
  13. $userPointSale->setUser($user);
  14. $userPointSale->setPointSale($pointSale);
  15. return $userPointSale;
  16. }
  17. }