src/Entity/Core/Reservations.php line 17

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Core;
  3. use Doctrine\DBAL\Types\Types;
  4. use Symfony\Bridge\Doctrine\Validator\Constraints\UniqueEntity;
  5. use Symfony\Component\Validator\Constraints as Assert;
  6. use Doctrine\ORM\Mapping as ORM;
  7. /**
  8. * Pages
  9. *
  10. * @ORM\Table("core_reservations")
  11. * @ORM\Entity(repositoryClass="App\Repository\Core\ReservationsRepository")
  12. * @ORM\HasLifecycleCallbacks()
  13. */
  14. class Reservations
  15. {
  16. /**
  17. * @var integer
  18. *
  19. * @ORM\Column(name="id", type="integer")
  20. * @ORM\Id
  21. * @ORM\GeneratedValue(strategy="AUTO")
  22. */
  23. protected $id;
  24. /**
  25. * @var string
  26. *
  27. * @ORM\Column(name="created_at", type="datetime", nullable=true)
  28. */
  29. private $createdAt;
  30. /**
  31. * @var string
  32. *
  33. * @ORM\Column(name="updated_at", type="datetime", nullable=true)
  34. */
  35. private $updatedAt;
  36. /**
  37. * @var string
  38. *
  39. * @ORM\Column(name="name", type="string", length=255, nullable=true)
  40. */
  41. private $name;
  42. /**
  43. * @var string
  44. *
  45. * @ORM\Column(name="lastname", type="string", length=255, nullable=true)
  46. */
  47. private $lastname;
  48. /**
  49. * @var string
  50. *
  51. * @ORM\Column(name="email", type="string", length=255, nullable=true)
  52. */
  53. private $email;
  54. /**
  55. * @var string
  56. *
  57. * @ORM\Column(name="pricing", type="float", length=11, nullable=true)
  58. */
  59. private $pricing;
  60. /**
  61. * @var string
  62. *
  63. * @ORM\Column(name="persons", type="integer", length=11, nullable=true)
  64. */
  65. private $persons;
  66. /**
  67. * @var string
  68. *
  69. * @ORM\Column(name="message", type="string", length=255, nullable=true)
  70. */
  71. private $message;
  72. /**
  73. * @ORM\Column(type="boolean", nullable=true)
  74. */
  75. private $parking;
  76. /**
  77. * @ORM\Column(type="boolean", nullable=true)
  78. */
  79. private $petitdej;
  80. /**
  81. * @ORM\Column(type="boolean", nullable=true)
  82. */
  83. private $menage;
  84. /**
  85. * @ORM\Column(type="boolean", nullable=true)
  86. */
  87. private $payed;
  88. /**
  89. * @var string
  90. *
  91. * @ORM\Column(name="start", type="date", nullable=true)
  92. */
  93. private $start;
  94. /**
  95. * @var string
  96. *
  97. * @ORM\Column(name="end", type="date", nullable=true)
  98. */
  99. private $end;
  100. /**
  101. * @var string
  102. *
  103. * @ORM\Column(name="locale", type="string", length=11, nullable=true)
  104. */
  105. private $locale;
  106. /**
  107. * @var string
  108. *
  109. * @ORM\Column(name="stripe_identifiant", type="string", length=255, nullable=true)
  110. */
  111. private $stripeIdentifiant;
  112. /**
  113. * @var string
  114. *
  115. * @ORM\Column(name="stripe_url", type="text", nullable=true)
  116. */
  117. private $stripeUrl;
  118. /**
  119. * @var string
  120. *
  121. * @ORM\Column(name="stripe_bill", type="text", nullable=true)
  122. */
  123. private $stripeBill;
  124. /**
  125. * @var string
  126. *
  127. * @ORM\Column(name="stripe_payed", type="boolean", nullable=true)
  128. */
  129. private $stripePayed;
  130. /**
  131. * @var string
  132. *
  133. * @ORM\Column(name="status", type="string", length=255, nullable=true)
  134. */
  135. private $status;
  136. /**
  137. * @ORM\PrePersist
  138. */
  139. public function setCreatedAtValue(): void
  140. {
  141. $this->setCreatedAt(new \DateTime("now"));
  142. $this->setUpdatedAt(new \DateTime("now"));
  143. $this->setLocale("en");
  144. }
  145. /**
  146. * @ORM\PreUpdate
  147. */
  148. public function setUpdatedAtValue(): void
  149. {
  150. $this->setUpdatedAt(new \DateTime("now"));
  151. }
  152. public function __toString() {
  153. return $this->name;
  154. }
  155. public function getId(): ?int
  156. {
  157. return $this->id;
  158. }
  159. public function getCreatedAt(): ?\DateTimeInterface
  160. {
  161. return $this->createdAt;
  162. }
  163. public function setCreatedAt(?\DateTimeInterface $createdAt): static
  164. {
  165. $this->createdAt = $createdAt;
  166. return $this;
  167. }
  168. public function getUpdatedAt(): ?\DateTimeInterface
  169. {
  170. return $this->updatedAt;
  171. }
  172. public function setUpdatedAt(?\DateTimeInterface $updatedAt): static
  173. {
  174. $this->updatedAt = $updatedAt;
  175. return $this;
  176. }
  177. public function getName(): ?string
  178. {
  179. return $this->name;
  180. }
  181. public function setName(?string $name): static
  182. {
  183. $this->name = $name;
  184. return $this;
  185. }
  186. public function getLastname(): ?string
  187. {
  188. return $this->lastname;
  189. }
  190. public function setLastname(?string $lastname): static
  191. {
  192. $this->lastname = $lastname;
  193. return $this;
  194. }
  195. public function getEmail(): ?string
  196. {
  197. return $this->email;
  198. }
  199. public function setEmail(?string $email): static
  200. {
  201. $this->email = $email;
  202. return $this;
  203. }
  204. public function getPricing(): ?float
  205. {
  206. return $this->pricing;
  207. }
  208. public function setPricing(?float $pricing): static
  209. {
  210. $this->pricing = $pricing;
  211. return $this;
  212. }
  213. public function getMessage(): ?string
  214. {
  215. return $this->message;
  216. }
  217. public function setMessage(?string $message): static
  218. {
  219. $this->message = $message;
  220. return $this;
  221. }
  222. public function isParking(): ?bool
  223. {
  224. return $this->parking;
  225. }
  226. public function setParking(?bool $parking): static
  227. {
  228. $this->parking = $parking;
  229. return $this;
  230. }
  231. public function isPetitdej(): ?bool
  232. {
  233. return $this->petitdej;
  234. }
  235. public function setPetitdej(?bool $petitdej): static
  236. {
  237. $this->petitdej = $petitdej;
  238. return $this;
  239. }
  240. public function isMenage(): ?bool
  241. {
  242. return $this->menage;
  243. }
  244. public function setMenage(?bool $menage): static
  245. {
  246. $this->menage = $menage;
  247. return $this;
  248. }
  249. public function isPayed(): ?bool
  250. {
  251. return $this->payed;
  252. }
  253. public function setPayed(?bool $payed): static
  254. {
  255. $this->payed = $payed;
  256. return $this;
  257. }
  258. public function getStart(): ?\DateTimeInterface
  259. {
  260. return $this->start;
  261. }
  262. public function setStart(?\DateTimeInterface $start): static
  263. {
  264. $this->start = $start;
  265. return $this;
  266. }
  267. public function getEnd(): ?\DateTimeInterface
  268. {
  269. return $this->end;
  270. }
  271. public function setEnd(?\DateTimeInterface $end): static
  272. {
  273. $this->end = $end;
  274. return $this;
  275. }
  276. public function getLocale(): ?string
  277. {
  278. return $this->locale;
  279. }
  280. public function setLocale(?string $locale): static
  281. {
  282. $this->locale = $locale;
  283. return $this;
  284. }
  285. public function getStripeIdentifiant(): ?string
  286. {
  287. return $this->stripeIdentifiant;
  288. }
  289. public function setStripeIdentifiant(?string $stripeIdentifiant): static
  290. {
  291. $this->stripeIdentifiant = $stripeIdentifiant;
  292. return $this;
  293. }
  294. public function getStripeUrl(): ?string
  295. {
  296. return $this->stripeUrl;
  297. }
  298. public function setStripeUrl(?string $stripeUrl): static
  299. {
  300. $this->stripeUrl = $stripeUrl;
  301. return $this;
  302. }
  303. public function isStripePayed(): ?bool
  304. {
  305. return $this->stripePayed;
  306. }
  307. public function setStripePayed(?bool $stripePayed): static
  308. {
  309. $this->stripePayed = $stripePayed;
  310. return $this;
  311. }
  312. public function getStatus(): ?string
  313. {
  314. return $this->status;
  315. }
  316. public function setStatus(?string $status): static
  317. {
  318. $this->status = $status;
  319. return $this;
  320. }
  321. public function getPersons(): ?int
  322. {
  323. return $this->persons;
  324. }
  325. public function setPersons(?int $persons): static
  326. {
  327. $this->persons = $persons;
  328. return $this;
  329. }
  330. public function getStripeBill(): ?string
  331. {
  332. return $this->stripeBill;
  333. }
  334. public function setStripeBill(?string $stripeBill): static
  335. {
  336. $this->stripeBill = $stripeBill;
  337. return $this;
  338. }
  339. }