111 lines
2.2KB

  1. <?php
  2. namespace Lc\ShopBundle\Model;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5. * @ORM\MappedSuperclass
  6. */
  7. abstract class AbstractDocumentOrder extends AbstractEntity
  8. {
  9. /**
  10. * @ORM\Column(type="string", length=255)
  11. */
  12. protected $title;
  13. /**
  14. * @ORM\Column(type="string", length=255, nullable=true)
  15. */
  16. protected $reference;
  17. /**
  18. * @ORM\Column(type="text", nullable=true)
  19. */
  20. protected $comment;
  21. /**
  22. * @ORM\Column(type="text")
  23. */
  24. protected $address;
  25. /**
  26. * @ORM\ManyToOne(targetEntity="Lc\ShopBundle\Context\UserInterface")
  27. * @ORM\JoinColumn(nullable=false)
  28. */
  29. protected $user;
  30. public function getTitle(): ?string
  31. {
  32. return $this->title;
  33. }
  34. public function setTitle(string $title): self
  35. {
  36. $this->title = $title;
  37. return $this;
  38. }
  39. public function getReference(): ?string
  40. {
  41. return $this->reference;
  42. }
  43. public function setReference(?string $reference): self
  44. {
  45. $this->reference = $reference;
  46. return $this;
  47. }
  48. public function getComment(): ?string
  49. {
  50. return $this->comment;
  51. }
  52. public function setComment(?string $comment): self
  53. {
  54. $this->comment = $comment;
  55. return $this;
  56. }
  57. public function getAddress(): ?string
  58. {
  59. return $this->address;
  60. }
  61. public function setAddress(string $address): self
  62. {
  63. $this->address = $address;
  64. return $this;
  65. }
  66. public function getOrders(): ?string
  67. {
  68. return $this->orders;
  69. }
  70. public function setOrders(string $orders): self
  71. {
  72. $this->orders = $orders;
  73. return $this;
  74. }
  75. public function getUser(): ?User
  76. {
  77. return $this->user;
  78. }
  79. public function setUser(?User $user): self
  80. {
  81. $this->user = $user;
  82. return $this;
  83. }
  84. }