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.

UserPointSale.php 1.2KB

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