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.
|
- <?php
-
- namespace Lc\CaracoleBundle\Factory\User;
-
- use App\Entity\User\UserPointSale;
- use Lc\CaracoleBundle\Model\PointSale\PointSaleInterface;
- use Lc\CaracoleBundle\Model\User\UserPointSaleInterface;
- use Lc\SovBundle\Factory\AbstractFactory;
- use Lc\SovBundle\Model\User\UserInterface;
-
- class UserPointSaleFactory extends AbstractFactory
- {
- public function create(UserInterface $user, PointSaleInterface $pointSale): UserPointSaleInterface
- {
- $userPointSale = new UserPointSale();
-
- $userPointSale->setUser($user);
- $userPointSale->setPointSale($pointSale);
-
- return $userPointSale;
- }
- }
|