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 587B

пре 3 година
123456789101112131415161718192021
  1. <?php
  2. namespace Lc\CaracoleBundle\Factory\User;
  3. use Lc\CaracoleBundle\Model\PointSale\PointSaleInterface;
  4. use Lc\CaracoleBundle\Model\User\UserPointSaleInterface;
  5. use Lc\SovBundle\Factory\AbstractFactory;
  6. use Lc\SovBundle\Model\User\UserInterface;
  7. class UserPointSaleFactory extends AbstractFactory
  8. {
  9. public function create(UserInterface $user, PointSaleInterface $pointSale): UserPointSaleInterface
  10. {
  11. $userPointSale = parent::create();
  12. $userPointSale->setUser($user);
  13. $userPointSale->setPointSale($pointSale);
  14. return $userPointSale;
  15. }
  16. }