src/Entity/Reclamation.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\ReclamationRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6. * @ORM\Entity(repositoryClass=ReclamationRepository::class)
  7. */
  8. class Reclamation
  9. {
  10. /**
  11. * @ORM\Id
  12. * @ORM\GeneratedValue
  13. * @ORM\Column(type="integer")
  14. */
  15. private $id;
  16. /**
  17. * @ORM\ManyToOne(targetEntity=Order::class, inversedBy="reclamations")
  18. * @ORM\JoinColumn(nullable=false)
  19. */
  20. private $order;
  21. /**
  22. * @ORM\Column(type="string", length=130)
  23. */
  24. private $email;
  25. /**
  26. * @ORM\Column(type="string", length=100)
  27. */
  28. private $phone;
  29. /**
  30. * @ORM\ManyToOne(targetEntity=Dealer::class, inversedBy="reclamations")
  31. * @ORM\JoinColumn(nullable=false)
  32. */
  33. private $dealer;
  34. /**
  35. * @ORM\Column(type="datetime")
  36. */
  37. private $createts;
  38. /**
  39. * @ORM\Column(type="text")
  40. */
  41. private $description;
  42. /**
  43. * @ORM\Column(type="boolean")
  44. */
  45. private $completed = false;
  46. public function getId(): ?int
  47. {
  48. return $this->id;
  49. }
  50. public function getOrder(): ?Order
  51. {
  52. return $this->order;
  53. }
  54. public function setOrder(?Order $order): self
  55. {
  56. $this->order = $order;
  57. return $this;
  58. }
  59. public function getEmail(): ?string
  60. {
  61. return $this->email;
  62. }
  63. public function setEmail(string $email): self
  64. {
  65. $this->email = $email;
  66. return $this;
  67. }
  68. public function getPhone(): ?string
  69. {
  70. return $this->phone;
  71. }
  72. public function setPhone(string $phone): self
  73. {
  74. $this->phone = $phone;
  75. return $this;
  76. }
  77. public function getDealer(): ?Dealer
  78. {
  79. return $this->dealer;
  80. }
  81. public function setDealer(?Dealer $dealer): self
  82. {
  83. $this->dealer = $dealer;
  84. return $this;
  85. }
  86. public function getCreatets(): ?\DateTimeInterface
  87. {
  88. return $this->createts;
  89. }
  90. public function setCreatets(\DateTimeInterface $createts): self
  91. {
  92. $this->createts = $createts;
  93. return $this;
  94. }
  95. public function getDescription(): ?string
  96. {
  97. return $this->description;
  98. }
  99. public function setDescription(string $description): self
  100. {
  101. $this->description = $description;
  102. return $this;
  103. }
  104. /**
  105. * @return bool
  106. */
  107. public function isCompleted(): bool
  108. {
  109. return $this->completed;
  110. }
  111. /**
  112. * @param bool $completed
  113. */
  114. public function setCompleted(bool $completed): void
  115. {
  116. $this->completed = $completed;
  117. }
  118. }