src/App/Entity/MetroDishLeadProduct.php line 21

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Service\MailService;
  4. use DateTime;
  5. use Doctrine\ORM\Mapping as ORM;
  6. use InvalidArgumentException;
  7. /**
  8. * @ORM\Entity
  9. *
  10. * @ORM\Table(
  11. * name="metro_dish_lead_products",
  12. * indexes={
  13. *
  14. * @ORM\Index(name="updated_at_idx", columns={"updated_at"})
  15. * }
  16. * )
  17. */
  18. class MetroDishLeadProduct
  19. {
  20. /**
  21. * @var string
  22. *
  23. * @ORM\Column(name="id", type="string")
  24. *
  25. * @ORM\Id
  26. */
  27. protected $id;
  28. public function setId(string $id)
  29. {
  30. $this->id = $id;
  31. }
  32. public function getId()
  33. {
  34. return $this->id;
  35. }
  36. /**
  37. * @var string
  38. *
  39. * @ORM\Column(name="stage", type="string", length=128, nullable=false)
  40. */
  41. protected $stage;
  42. public function getStage(): string
  43. {
  44. return $this->stage;
  45. }
  46. public function setStage(string $stage): void
  47. {
  48. $this->stage = $stage;
  49. }
  50. /**
  51. * @var string
  52. *
  53. * @ORM\Column(name="establishment", type="string", length=128, nullable=false)
  54. */
  55. protected $establishment;
  56. public function getEstablishment(): string
  57. {
  58. return $this->establishment;
  59. }
  60. public function setEstablishment(string $establishment): void
  61. {
  62. $this->establishment = $establishment;
  63. }
  64. /**
  65. * @var string
  66. *
  67. * @ORM\Column(name="contact_firstname", type="string", length=128, nullable=false)
  68. */
  69. protected $contactFirstname;
  70. public function getContactFirstname(): string
  71. {
  72. return $this->contactFirstname;
  73. }
  74. public function setContactFirstname(string $contactFirstname): void
  75. {
  76. $this->contactFirstname = $contactFirstname;
  77. }
  78. /**
  79. * @var string
  80. *
  81. * @ORM\Column(name="contact_lastname", type="string", length=128, nullable=false)
  82. */
  83. protected $contactLastname;
  84. public function getContactLastname(): string
  85. {
  86. return $this->contactLastname;
  87. }
  88. public function setContactLastname(string $contactLastname): void
  89. {
  90. $this->contactLastname = $contactLastname;
  91. }
  92. /**
  93. * @var string
  94. *
  95. * @ORM\Column(name="contact_email", type="string", length=128, nullable=false)
  96. */
  97. protected $contactEmail;
  98. public function getContactEmail(): string
  99. {
  100. return $this->contactEmail;
  101. }
  102. public function setContactEmail(string $contactEmail): void
  103. {
  104. if (!MailService::emailAddressIsValidForMailer($contactEmail)) {
  105. throw new InvalidArgumentException("E-mail '$contactEmail' is not valid.");
  106. }
  107. $this->contactEmail = $contactEmail;
  108. }
  109. /**
  110. * @var ?string
  111. *
  112. * @ORM\Column(name="contact_phone", type="string", length=128, nullable=true)
  113. */
  114. protected $contactPhone;
  115. public function getContactPhone(): ?string
  116. {
  117. return $this->contactPhone;
  118. }
  119. public function setContactPhone(?string $contactPhone): void
  120. {
  121. $this->contactPhone = $contactPhone;
  122. }
  123. /**
  124. * @var string
  125. *
  126. * @ORM\Column(name="contact_mobile", type="string", length=128, nullable=false)
  127. */
  128. protected $contactMobile;
  129. public function getContactMobile(): string
  130. {
  131. return $this->contactMobile;
  132. }
  133. public function setContactMobile(string $contactMobile): void
  134. {
  135. $this->contactMobile = $contactMobile;
  136. }
  137. /**
  138. * @var string
  139. *
  140. * @ORM\Column(name="contact_street", type="string", length=128, nullable=false)
  141. */
  142. protected $contactStreet;
  143. public function getContactStreet(): string
  144. {
  145. return $this->contactStreet;
  146. }
  147. public function setContactStreet(string $contactStreet): void
  148. {
  149. $this->contactStreet = $contactStreet;
  150. }
  151. /**
  152. * @var string
  153. *
  154. * @ORM\Column(name="contact_city", type="string", length=128, nullable=false)
  155. */
  156. protected $contactCity;
  157. public function getContactCity(): string
  158. {
  159. return $this->contactCity;
  160. }
  161. public function setContactCity(string $contactCity): void
  162. {
  163. $this->contactCity = $contactCity;
  164. }
  165. /**
  166. * @var string
  167. *
  168. * @ORM\Column(name="contact_zipcode", type="string", length=128, nullable=false)
  169. */
  170. protected $contactZipcode;
  171. public function getContactZipcode(): string
  172. {
  173. return $this->contactZipcode;
  174. }
  175. public function setContactZipcode(string $contactZipcode): void
  176. {
  177. $this->contactZipcode = $contactZipcode;
  178. }
  179. /**
  180. * @var string
  181. *
  182. * @ORM\Column(name="contact_country", type="string", length=128, nullable=false)
  183. */
  184. protected $contactCountry;
  185. public function getContactCountry(): string
  186. {
  187. return $this->contactCountry;
  188. }
  189. public function setContactCountry(string $contactCountry): void
  190. {
  191. $this->contactCountry = $contactCountry;
  192. }
  193. /**
  194. * @var ?string
  195. *
  196. * @ORM\Column(name="documentation", type="string", length=8192, nullable=true)
  197. */
  198. protected $documentation;
  199. public function getDocumentation(): ?string
  200. {
  201. return $this->documentation;
  202. }
  203. public function setDocumentation(?string $documentation): void
  204. {
  205. $this->documentation = $documentation;
  206. }
  207. /**
  208. * @var DateTime
  209. *
  210. * @ORM\Column(name="initially_received_at", type="datetime", nullable=false)
  211. */
  212. protected $initiallyReceivedAt;
  213. public function getInitiallyReceivedAt(): DateTime
  214. {
  215. return $this->initiallyReceivedAt;
  216. }
  217. public function setInitiallyReceivedAt(DateTime $initiallyReceivedAt): void
  218. {
  219. $this->initiallyReceivedAt = $initiallyReceivedAt;
  220. }
  221. /**
  222. * @var DateTime
  223. *
  224. * @ORM\Column(name="updated_at", type="datetime", nullable=false)
  225. */
  226. protected $updatedAt;
  227. public function getUpdatedAt(): DateTime
  228. {
  229. return $this->updatedAt;
  230. }
  231. public function setUpdatedAt(DateTime $updatedAt): void
  232. {
  233. $this->updatedAt = $updatedAt;
  234. }
  235. }