No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.

UserPointSaleModel.php 1.5KB

hace 3 años
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  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. }