Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.

68 lines
1.5KB

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