Du kan inte välja fler än 25 ämnen Ämnen måste starta med en bokstav eller siffra, kan innehålla bindestreck ('-') och vara max 35 tecken långa.

UserPointSaleModel.php 1.4KB

3 år sedan
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. <?php
  2. namespace Lc\CaracoleBundle\Model\User;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use Lc\CaracoleBundle\Model\PointSale\PointSaleInterface;
  5. use Lc\SovBundle\Model\User\UserInterface;
  6. /**
  7. * @ORM\MappedSuperclass
  8. */
  9. abstract class UserPointSaleModel implements UserPointSaleInterface
  10. {
  11. /**
  12. * @ORM\ManyToOne(targetEntity="Lc\SovBundle\Model\User\UserInterface", inversedBy="userPointSales")
  13. * @ORM\JoinColumn(nullable=false)
  14. */
  15. protected $user;
  16. /**
  17. * @ORM\ManyToOne(targetEntity="Lc\CaracoleBundle\Model\PointSale\PointSaleInterface", inversedBy="userPointSales")
  18. * @ORM\JoinColumn(nullable=false)
  19. */
  20. protected $pointSale;
  21. /**
  22. * @ORM\Column(type="text", nullable=true)
  23. */
  24. protected $comment;
  25. public function getUser(): ?UserInterface
  26. {
  27. return $this->user;
  28. }
  29. public function setUser(?UserInterface $user): self
  30. {
  31. $this->user = $user;
  32. return $this;
  33. }
  34. public function getPointSale(): ?PointSaleInterface
  35. {
  36. return $this->pointSale;
  37. }
  38. public function setPointSale(?PointSaleInterface $pointSale): self
  39. {
  40. $this->pointSale = $pointSale;
  41. return $this;
  42. }
  43. public function getComment(): ?string
  44. {
  45. return $this->comment;
  46. }
  47. public function setComment(?string $comment): self
  48. {
  49. $this->comment = $comment;
  50. return $this;
  51. }
  52. }