src/MDS/VenuesBundle/Entity/ReservationLoungeDetails.php line 18

Open in your IDE?
  1. <?php
  2. namespace App\MDS\VenuesBundle\Entity;
  3. use App\Entity\HtItem;
  4. use App\Entity\ReservationLoungeWebDescription;
  5. use App\Entity\Space;
  6. use Doctrine\Common\Collections\ArrayCollection;
  7. use Doctrine\Common\Collections\Collection;
  8. use Doctrine\ORM\Mapping as ORM;
  9. use Symfony\Component\Serializer\Annotation\Groups;
  10. /**
  11. * ReservationLoungeDetails
  12. */
  13. #[ORM\Entity(repositoryClass: \App\MDS\VenuesBundle\Repository\ReservationLoungeDetailsRepository::class)]
  14. #[ORM\Table(name: 'reservation_lounge_details')]
  15. class ReservationLoungeDetails
  16. {
  17. /**
  18. * @var int
  19. */
  20. #[ORM\Column(name: 'id', type: 'integer')]
  21. #[ORM\Id]
  22. #[ORM\GeneratedValue(strategy: 'AUTO')]
  23. #[Groups(['ReservationLoungeDetails:read'])]
  24. private $id;
  25. /**
  26. * @var string
  27. */
  28. #[ORM\Column(name: 'name', type: 'string', length: 255)]
  29. #[Groups(['ReservationLoungeDetails:read'])]
  30. private $name;
  31. /**
  32. * @var int
  33. */
  34. #[ORM\Column(name: 'created_id', type: 'integer')]
  35. private $createdId;
  36. /**
  37. * @var \DateTime
  38. */
  39. #[ORM\Column(name: 'created_at', type: 'datetime')]
  40. private $createdAt;
  41. /**
  42. * @var int
  43. */
  44. #[ORM\Column(name: 'updated_id', type: 'integer')]
  45. private $updatedId;
  46. /**
  47. * @var \DateTime
  48. */
  49. #[ORM\Column(name: 'updated_at', type: 'datetime')]
  50. private $updatedAt;
  51. /**
  52. * @var string
  53. */
  54. #[ORM\Column(name: 'meters', type: 'string', length: 255, nullable: true)]
  55. #[Groups(['ReservationLoungeDetails:read'])]
  56. private $meters;
  57. /**
  58. * @var string
  59. */
  60. #[ORM\Column(name: 'length', type: 'string', length: 255, nullable: true)]
  61. #[Groups(['ReservationLoungeDetails:read'])]
  62. private $length;
  63. /**
  64. * @var string
  65. */
  66. #[ORM\Column(name: 'width', type: 'string', length: 255, nullable: true)]
  67. #[Groups(['ReservationLoungeDetails:read'])]
  68. private $width;
  69. /**
  70. * @var string
  71. */
  72. #[ORM\Column(name: 'height', type: 'string', length: 255, nullable: true)]
  73. #[Groups(['ReservationLoungeDetails:read'])]
  74. private $height;
  75. /**
  76. * @var string
  77. */
  78. #[ORM\Column(name: 'cap_school', type: 'string', length: 255, nullable: true)]
  79. #[Groups(['ReservationLoungeDetails:read'])]
  80. private $capSchool;
  81. /**
  82. * @var string
  83. */
  84. #[ORM\Column(name: 'cap_theater', type: 'string', length: 255, nullable: true)]
  85. #[Groups(['ReservationLoungeDetails:read'])]
  86. private $capTheater;
  87. /**
  88. * @var string
  89. */
  90. #[ORM\Column(name: 'cap_cocktail', type: 'string', length: 255, nullable: true)]
  91. #[Groups(['ReservationLoungeDetails:read'])]
  92. private $capCocktail;
  93. /**
  94. * @var string
  95. */
  96. #[ORM\Column(name: 'cap_banquet', type: 'string', length: 255, nullable: true)]
  97. #[Groups(['ReservationLoungeDetails:read'])]
  98. private $capBanquet;
  99. /**
  100. * @var string
  101. */
  102. #[ORM\Column(name: 'cap_imperial', type: 'string', length: 255, nullable: true)]
  103. #[Groups(['ReservationLoungeDetails:read'])]
  104. private $capImperial;
  105. /**
  106. * @var int
  107. */
  108. #[ORM\Column(name: 'rank_lounge', type: 'integer', nullable: true)]
  109. #[Groups(['ReservationLoungeDetails:read'])]
  110. private $rankLounge;
  111. /**
  112. * @var string
  113. * Indices separados por comas de las salas que contenga el combo. Si no es combo estara en NULL
  114. */
  115. #[ORM\Column(name: 'combo', type: 'string', length: 55, nullable: true)]
  116. #[Groups(['ReservationLoungeDetails:read'])]
  117. private $combo;
  118. /**
  119. * @var string
  120. *
  121. * Cuadro de texto para caracteristicas especificas de la sala, este campo se refleja en
  122. la cotizacion web como cuadro de informacion Importante
  123. */
  124. #[ORM\Column(name: 'importantDescription', type: 'text', nullable: true)]
  125. private $importantDescription;
  126. /**
  127. * @var string
  128. *
  129. * La info del cuadro del texto importante de la web, se dividira en varios bloques para que desde el front
  130. se le de una mejor presentación y desde Mante se pueda modificar la información.
  131. Esta es la información para el texto general
  132. */
  133. #[ORM\Column(name: 'importantDescGeneralText', type: 'text', nullable: true)]
  134. private $importantDescGeneralText;
  135. /**
  136. * @var string
  137. *
  138. * La info del cuadro del texto importante de la web, se dividira en varios bloques para que desde el front
  139. se le de una mejor presentación y desde Mante se pueda modificar la información.
  140. Esta es la información para los horarios
  141. */
  142. #[ORM\Column(name: 'importantDescSchedules', type: 'text', nullable: true)]
  143. private $importantDescSchedules;
  144. /**
  145. * @var string
  146. *
  147. * La info del cuadro del texto importante de la web, se dividira en varios bloques para que desde el front
  148. se le de una mejor presentación y desde Mante se pueda modificar la información.
  149. Esta es la información para el parking
  150. */
  151. #[ORM\Column(name: 'importantDescParking', type: 'text', nullable: true)]
  152. private $importantDescParking;
  153. #[ORM\OneToMany(targetEntity: ReservationLoungeWebDescription::class, mappedBy: 'lounge', orphanRemoval: true)]
  154. private $reservationLoungeWebDescriptions;
  155. #[ORM\ManyToOne(targetEntity: Space::class, inversedBy: 'ReservationLounges')]
  156. #[ORM\JoinColumn(name: 'space_id', referencedColumnName: 'id', nullable: true, onDelete: 'SET NULL')]
  157. private $space;
  158. public function __construct()
  159. {
  160. $this->reservationLoungeWebDescriptions = new ArrayCollection();
  161. }
  162. /**
  163. * Get id
  164. *
  165. * @return int
  166. */
  167. public function getId()
  168. {
  169. return $this->id;
  170. }
  171. /**
  172. * Set name
  173. *
  174. * @param string $name
  175. *
  176. * @return ReservationLoungeDetails
  177. */
  178. public function setName($name)
  179. {
  180. $this->name = $name;
  181. return $this;
  182. }
  183. /**
  184. * Get name
  185. *
  186. * @return string
  187. */
  188. public function getName()
  189. {
  190. return $this->name;
  191. }
  192. /**
  193. * Set createdId
  194. *
  195. * @param integer $createdId
  196. *
  197. * @return ReservationLoungeDetails
  198. */
  199. public function setCreatedId($createdId)
  200. {
  201. $this->createdId = $createdId;
  202. return $this;
  203. }
  204. /**
  205. * Get createdId
  206. *
  207. * @return integer
  208. */
  209. public function getCreatedId()
  210. {
  211. return $this->createdId;
  212. }
  213. /**
  214. * Set createdAt
  215. *
  216. * @param \DateTime $createdAt
  217. *
  218. * @return ReservationLoungeDetails
  219. */
  220. public function setCreatedAt($createdAt)
  221. {
  222. $this->createdAt = $createdAt;
  223. return $this;
  224. }
  225. /**
  226. * Get createdAt
  227. *
  228. * @return \DateTime
  229. */
  230. public function getCreatedAt()
  231. {
  232. return $this->createdAt;
  233. }
  234. /**
  235. * Set updatedId
  236. *
  237. * @param integer $updatedId
  238. *
  239. * @return ReservationLoungeDetails
  240. */
  241. public function setUpdatedId($updatedId)
  242. {
  243. $this->updatedId = $updatedId;
  244. return $this;
  245. }
  246. /**
  247. * Get updatedId
  248. *
  249. * @return integer
  250. */
  251. public function getUpdatedId()
  252. {
  253. return $this->updatedId;
  254. }
  255. /**
  256. * Set updatedAt
  257. *
  258. * @param \DateTime $updatedAt
  259. *
  260. * @return ReservationLoungeDetails
  261. */
  262. public function setUpdatedAt($updatedAt)
  263. {
  264. $this->updatedAt = $updatedAt;
  265. return $this;
  266. }
  267. /**
  268. * Get updatedAt
  269. *
  270. * @return \DateTime
  271. */
  272. public function getUpdatedAt()
  273. {
  274. return $this->updatedAt;
  275. }
  276. /**
  277. * Set meters
  278. *
  279. * @param string $meters
  280. *
  281. * @return ReservationLoungeDetails
  282. */
  283. public function setMeters($meters)
  284. {
  285. $this->meters = $meters;
  286. return $this;
  287. }
  288. /**
  289. * Get meters
  290. *
  291. * @return string
  292. */
  293. public function getMeters()
  294. {
  295. return $this->meters;
  296. }
  297. /**
  298. * Set length
  299. *
  300. * @param string $length
  301. *
  302. * @return ReservationLoungeDetails
  303. */
  304. public function setLength($length)
  305. {
  306. $this->length = $length;
  307. return $this;
  308. }
  309. /**
  310. * Get length
  311. *
  312. * @return string
  313. */
  314. public function getLength()
  315. {
  316. return $this->length;
  317. }
  318. /**
  319. * Set width
  320. *
  321. * @param string $width
  322. *
  323. * @return ReservationLoungeDetails
  324. */
  325. public function setWidth($width)
  326. {
  327. $this->width = $width;
  328. return $this;
  329. }
  330. /**
  331. * Get width
  332. *
  333. * @return string
  334. */
  335. public function getWidth()
  336. {
  337. return $this->width;
  338. }
  339. /**
  340. * Set height
  341. *
  342. * @param string $height
  343. *
  344. * @return ReservationLoungeDetails
  345. */
  346. public function setHeight($height)
  347. {
  348. $this->height = $height;
  349. return $this;
  350. }
  351. /**
  352. * Get height
  353. *
  354. * @return string
  355. */
  356. public function getHeight()
  357. {
  358. return $this->height;
  359. }
  360. /**
  361. * Set capSchool
  362. *
  363. * @param string $capSchool
  364. *
  365. * @return ReservationLoungeDetails
  366. */
  367. public function setCapSchool($capSchool)
  368. {
  369. $this->capSchool = $capSchool;
  370. return $this;
  371. }
  372. /**
  373. * Get capSchool
  374. *
  375. * @return string
  376. */
  377. public function getCapSchool()
  378. {
  379. return $this->capSchool;
  380. }
  381. /**
  382. * Set capTheater
  383. *
  384. * @param string $capTheater
  385. *
  386. * @return ReservationLoungeDetails
  387. */
  388. public function setCapTheater($capTheater)
  389. {
  390. $this->capTheater = $capTheater;
  391. return $this;
  392. }
  393. /**
  394. * Get capTheater
  395. *
  396. * @return string
  397. */
  398. public function getCapTheater()
  399. {
  400. return $this->capTheater;
  401. }
  402. /**
  403. * Set capCocktail
  404. *
  405. * @param string $capCocktail
  406. *
  407. * @return ReservationLoungeDetails
  408. */
  409. public function setCapCocktail($capCocktail)
  410. {
  411. $this->capCocktail = $capCocktail;
  412. return $this;
  413. }
  414. /**
  415. * Get capCocktail
  416. *
  417. * @return string
  418. */
  419. public function getCapCocktail()
  420. {
  421. return $this->capCocktail;
  422. }
  423. /**
  424. * Set capBanquet
  425. *
  426. * @param string $capBanquet
  427. *
  428. * @return ReservationLoungeDetails
  429. */
  430. public function setCapBanquet($capBanquet)
  431. {
  432. $this->capBanquet = $capBanquet;
  433. return $this;
  434. }
  435. /**
  436. * Get capBanquet
  437. *
  438. * @return string
  439. */
  440. public function getCapBanquet()
  441. {
  442. return $this->capBanquet;
  443. }
  444. /**
  445. * Set capImperial
  446. *
  447. * @param string $capImperial
  448. *
  449. * @return ReservationLoungeDetails
  450. */
  451. public function setCapImperial($capImperial)
  452. {
  453. $this->capImperial = $capImperial;
  454. return $this;
  455. }
  456. /**
  457. * Get capImperial
  458. *
  459. * @return string
  460. */
  461. public function getCapImperial()
  462. {
  463. return $this->capImperial;
  464. }
  465. /**
  466. * Set rankLounge
  467. *
  468. * @param integer $rankLounge
  469. *
  470. * @return ReservationLoungeDetails
  471. */
  472. public function setRankLounge($rankLounge)
  473. {
  474. $this->rankLounge = $rankLounge;
  475. return $this;
  476. }
  477. /**
  478. * Get rankLounge
  479. *
  480. * @return integer
  481. */
  482. public function getRankLounge()
  483. {
  484. return $this->rankLounge;
  485. }
  486. /**
  487. * Set combo
  488. *
  489. * @param string $combo
  490. *
  491. * @return ReservationLoungeDetails
  492. */
  493. public function setCombo($combo)
  494. {
  495. $this->combo = $combo;
  496. return $this;
  497. }
  498. /**
  499. * Get combo
  500. *
  501. * @return string
  502. */
  503. public function getCombo()
  504. {
  505. return $this->combo;
  506. }
  507. /**
  508. * Set importantDescription
  509. *
  510. * @param string $importantDescription
  511. *
  512. * @return ReservationLoungeDetails
  513. */
  514. public function setImportantDescription($importantDescription)
  515. {
  516. $this->importantDescription = $importantDescription;
  517. return $this;
  518. }
  519. /**
  520. * Get importantDescription
  521. *
  522. * @return string
  523. */
  524. public function getImportantDescription()
  525. {
  526. return $this->importantDescription;
  527. }
  528. /**
  529. * Set importantDescGeneralText
  530. *
  531. * @param string $importantDescGeneralText
  532. *
  533. * @return ReservationLoungeDetails
  534. */
  535. public function setImportantDescGeneralText($importantDescGeneralText)
  536. {
  537. $this->importantDescGeneralText = $importantDescGeneralText;
  538. return $this;
  539. }
  540. /**
  541. * Get importantDescGeneralText
  542. *
  543. * @return string
  544. */
  545. public function getImportantDescGeneralText()
  546. {
  547. return $this->importantDescGeneralText;
  548. }
  549. /**
  550. * Set importantDescSchedules
  551. *
  552. * @param string $importantDescSchedules
  553. *
  554. * @return ReservationLoungeDetails
  555. */
  556. public function setImportantDescSchedules($importantDescSchedules)
  557. {
  558. $this->importantDescSchedules = $importantDescSchedules;
  559. return $this;
  560. }
  561. /**
  562. * Get importantDescSchedules
  563. *
  564. * @return string
  565. */
  566. public function getImportantDescSchedules()
  567. {
  568. return $this->importantDescSchedules;
  569. }
  570. /**
  571. * Set importantDescParking
  572. *
  573. * @param string $importantDescParking
  574. *
  575. * @return ReservationLoungeDetails
  576. */
  577. public function setImportantDescParking($importantDescParking)
  578. {
  579. $this->importantDescParking = $importantDescParking;
  580. return $this;
  581. }
  582. /**
  583. * Get importantDescParking
  584. *
  585. * @return string
  586. */
  587. public function getImportantDescParking()
  588. {
  589. return $this->importantDescParking;
  590. }
  591. /**
  592. * @return Collection<int, ReservationLoungeWebDescription>
  593. */
  594. public function getReservationLoungeWebDescriptions(): Collection
  595. {
  596. return $this->reservationLoungeWebDescriptions;
  597. }
  598. public function addReservationLoungeWebDescription(ReservationLoungeWebDescription $reservationLoungeWebDescription): self
  599. {
  600. if (!$this->reservationLoungeWebDescriptions->contains($reservationLoungeWebDescription)) {
  601. $this->reservationLoungeWebDescriptions[] = $reservationLoungeWebDescription;
  602. $reservationLoungeWebDescription->setLounge($this);
  603. }
  604. return $this;
  605. }
  606. public function removeReservationLoungeWebDescription(ReservationLoungeWebDescription $reservationLoungeWebDescription): self
  607. {
  608. if ($this->reservationLoungeWebDescriptions->removeElement($reservationLoungeWebDescription)) {
  609. // set the owning side to null (unless already changed)
  610. if ($reservationLoungeWebDescription->getLounge() === $this) {
  611. $reservationLoungeWebDescription->setLounge(null);
  612. }
  613. }
  614. return $this;
  615. }
  616. public function getSpace(): ?Space
  617. {
  618. return $this->space;
  619. }
  620. public function setSpace(?Space $space): self
  621. {
  622. $this->space = $space;
  623. return $this;
  624. }
  625. }