Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

23 rindas
625B

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