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.

UserPointSaleFactory.php 625B

пре 3 година
пре 3 година
пре 3 година
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. }