vendor/croisiland/common-bundle/src/Entity/Itinerary/StopoverComputed.php line 13

Open in your IDE?
  1. <?php
  2. declare(strict_types=1);
  3. namespace Croisiland\CommonBundle\Entity\Itinerary;
  4. use Croisiland\CommonBundle\Repository\Itinerary\StopoverComputedRepository;
  5. use Doctrine\ORM\Mapping as ORM;
  6. /**
  7. * @ORM\Entity(repositoryClass=StopoverComputedRepository::class)
  8. */
  9. class StopoverComputed
  10. {
  11. /**
  12. * @ORM\Id
  13. *
  14. * @ORM\OneToOne(targetEntity=Stopover::class, inversedBy="computed")
  15. */
  16. private Stopover $stopover;
  17. /**
  18. * @ORM\Column(type="integer", nullable=true)
  19. */
  20. private ?int $itinerariesCount;
  21. /**
  22. * @ORM\Column(type="integer", nullable=true)
  23. */
  24. private ?int $activeCruisesCount;
  25. /**
  26. * @ORM\Column(type="boolean", options={"default":false})
  27. */
  28. private bool $description;
  29. /**
  30. * @ORM\Column(type="boolean", options={"default":false})
  31. */
  32. private bool $whatToDo;
  33. /**
  34. * @ORM\Column(type="boolean", options={"default":false})
  35. */
  36. private bool $accessGuide;
  37. /**
  38. * @ORM\Column(type="boolean", options={"default":false})
  39. */
  40. private bool $correspondence;
  41. /**
  42. * @ORM\Column(type="boolean", options={"default":false})
  43. */
  44. private bool $geolocation;
  45. /**
  46. * @ORM\Column(type="integer", nullable=true)
  47. */
  48. private ?int $mediasCount;
  49. public function getStopover(): Stopover
  50. {
  51. return $this->stopover;
  52. }
  53. public function setStopover(Stopover $stopover): self
  54. {
  55. $this->stopover = $stopover;
  56. return $this;
  57. }
  58. public function getItinerariesCount(): ?int
  59. {
  60. return $this->itinerariesCount;
  61. }
  62. public function setItinerariesCount(?int $itinerariesCount): self
  63. {
  64. $this->itinerariesCount = $itinerariesCount;
  65. return $this;
  66. }
  67. public function getActiveCruisesCount(): ?int
  68. {
  69. return $this->activeCruisesCount;
  70. }
  71. public function setActiveCruisesCount(?int $activeCruisesCount): self
  72. {
  73. $this->activeCruisesCount = $activeCruisesCount;
  74. return $this;
  75. }
  76. public function isDescription(): bool
  77. {
  78. return $this->description;
  79. }
  80. public function setDescription(bool $description): self
  81. {
  82. $this->description = $description;
  83. return $this;
  84. }
  85. public function isWhatToDo(): bool
  86. {
  87. return $this->whatToDo;
  88. }
  89. public function setWhatToDo(bool $whatToDo): self
  90. {
  91. $this->whatToDo = $whatToDo;
  92. return $this;
  93. }
  94. public function isAccessGuide(): bool
  95. {
  96. return $this->accessGuide;
  97. }
  98. public function setAccessGuide(bool $accessGuide): self
  99. {
  100. $this->accessGuide = $accessGuide;
  101. return $this;
  102. }
  103. public function isCorrespondence(): bool
  104. {
  105. return $this->correspondence;
  106. }
  107. public function setCorrespondence(bool $correspondence): self
  108. {
  109. $this->correspondence = $correspondence;
  110. return $this;
  111. }
  112. public function isGeolocation(): bool
  113. {
  114. return $this->geolocation;
  115. }
  116. public function setGeolocation(bool $geolocation): self
  117. {
  118. $this->geolocation = $geolocation;
  119. return $this;
  120. }
  121. public function getMediasCount(): ?int
  122. {
  123. return $this->mediasCount;
  124. }
  125. public function setMediasCount(?int $mediasCount): self
  126. {
  127. $this->mediasCount = $mediasCount;
  128. return $this;
  129. }
  130. }