src/Entity/Attractions.php line 17
<?phpnamespace App\Entity;use App\Entity\Trait\MainTranslationTrait;use App\Entity\Translation\AttractionsTranslation;use App\Repository\AttractionsRepository;use Doctrine\Common\Collections\ArrayCollection;use Doctrine\Common\Collections\Collection;use Doctrine\ORM\Mapping as ORM;use Gedmo\Mapping\Annotation as Gedmo;use Gedmo\Translatable\Translatable;#[ORM\Table(name: 'attractions')]#[ORM\Entity(repositoryClass: AttractionsRepository::class)]#[Gedmo\TranslationEntity(class: AttractionsTranslation::class)]class Attractions implements Translatable{use MainTranslationTrait;const TRANSLATION_ENTITY = AttractionsTranslation::class;#[ORM\Id]#[ORM\GeneratedValue]#[ORM\Column]private ?int $id = null;#[ORM\Column(type: 'string', nullable: true)]#[Gedmo\Translatable]private ?string $title = null;#[ORM\Column(type: 'string',unique: true)]#[Gedmo\Slug(fields: ['title'])]private string $slug;#[ORM\Column(type: 'text', nullable: true)]#[Gedmo\Translatable]private ?string $description = null;#[ORM\Column(type: 'text', nullable: true)]#[Gedmo\Translatable]private ?string $body = null;#[ORM\Column(type: 'string', nullable: true)]private ?string $image = null;#[ORM\Column(type: 'string', nullable: true)]private ?string $video = null;#[ORM\Column(type: 'boolean', nullable: true)]private ?bool $phoneAllowed = true;#[ORM\Column(type: 'json', nullable: true)]private ?array $images = null;#[ORM\Column(type: 'string', nullable: true)]#[Gedmo\Translatable]private ?string $speed = null;#[ORM\Column(type: 'string', nullable: true)]private ?string $power = null;#[ORM\Column(type: 'string', nullable: true)]#[Gedmo\Translatable]private ?string $attractionHeight = null;#[ORM\Column(type: 'string', nullable: true)]private ?string $maximumSeatWeight = null;#[ORM\Column(type: 'string', nullable: true)]#[Gedmo\Translatable]private ?string $minHeightWithAdult = null;#[ORM\Column(type: 'string', nullable: true)]#[Gedmo\Translatable]private ?string $maxHeight = null;#[ORM\Column(type: 'string', nullable: true)]#[Gedmo\Translatable]private ?string $minHeightAlone = null;#[ORM\Column(type: 'text', nullable: true)]#[Gedmo\Translatable]private ?string $additionalInfo = null;#[ORM\Column(type: 'boolean', nullable: true)]private ?bool $showInSlider = null;#[ORM\Column(type: 'integer', nullable: true)]private ?int $orderNumber = null;#[ORM\Column(type: 'string',length: 160, nullable: true)]#[Gedmo\Translatable]private ?string $metaKeywords = null;#[ORM\Column(type: 'string',length: 160, nullable: true)]#[Gedmo\Translatable]private ?string $metaDescription = null;#[ORM\ManyToOne(targetEntity: AttractionTypes::class, inversedBy: 'attraction')]private ?AttractionTypes $attractionTypes = null;#[ORM\ManyToMany(targetEntity: ProhibitedCases::class, inversedBy: 'attractions')]#[ORM\JoinTable(name: 'attractions_prohibited_cases')]private $prohibitedCases;public function __construct(){$this->prohibitedCases = new ArrayCollection();}public function __toString(): string{return $this->title ?? "";}public function getId(): ?int{return $this->id;}public function getTitle(): ?string{return $this->title;}public function setTitle(?string $title): static{$this->title = $title;return $this;}public function getDescription(): ?string{return $this->description;}public function setDescription(?string $description): static{$this->description = $description;return $this;}public function getBody(): ?string{return $this->body;}public function setBody(?string $body): static{$this->body = $body;return $this;}public function getImage(): ?string{return $this->image;}public function setImage(?string $image): static{$this->image = $image;return $this;}public function getImages(): ?array{return $this->images;}public function setImages(?array $images): static{$this->images = $images;return $this;}public function getSpeed(): ?string{return $this->speed;}public function setSpeed(?string $speed): static{$this->speed = $speed;return $this;}public function getPower(): ?string{return $this->power;}public function setPower(?string $power): static{$this->power = $power;return $this;}public function getAttractionHeight(): ?string{return $this->attractionHeight;}public function setAttractionHeight(?string $attractionHeight): static{$this->attractionHeight = $attractionHeight;return $this;}public function getMinHeightWithAdult(): ?string{return $this->minHeightWithAdult;}public function setMinHeightWithAdult(?string $minHeightWithAdult): static{$this->minHeightWithAdult = $minHeightWithAdult;return $this;}public function getMinHeightAlone(): ?string{return $this->minHeightAlone;}public function setMinHeightAlone(?string $minHeightAlone): static{$this->minHeightAlone = $minHeightAlone;return $this;}public function isShowInSlider(): ?bool{return $this->showInSlider;}public function setShowInSlider(?bool $showInSlider): static{$this->showInSlider = $showInSlider;return $this;}public function getOrderNumber(): ?int{return $this->orderNumber;}public function setOrderNumber(?int $orderNumber): static{$this->orderNumber = $orderNumber;return $this;}public function getAttractionTypes(): ?AttractionTypes{return $this->attractionTypes;}public function setAttractionTypes(?AttractionTypes $attractionTypes): static{$this->attractionTypes = $attractionTypes;return $this;}public function getSlug(): string{return $this->slug;}public function setSlug(string $slug): void{$this->slug = $slug;}public function getPhoneAllowed(): ?bool{return $this->phoneAllowed;}public function setPhoneAllowed(?bool $phoneAllowed): void{$this->phoneAllowed = $phoneAllowed;}public function getMaximumSeatWeight(): ?string{return $this->maximumSeatWeight;}public function setMaximumSeatWeight(?string $maximumSeatWeight): void{$this->maximumSeatWeight = $maximumSeatWeight;}public function getMaxHeight(): ?string{return $this->maxHeight;}public function setMaxHeight(?string $maxHeight): void{$this->maxHeight = $maxHeight;}public function getMetaKeywords(): ?string{return $this->metaKeywords;}public function setMetaKeywords(?string $metaKeywords): void{$this->metaKeywords = $metaKeywords;}public function getMetaDescription(): ?string{return $this->metaDescription;}public function setMetaDescription(?string $metaDescription): void{$this->metaDescription = $metaDescription;}public function getAdditionalInfo(): ?string{return $this->additionalInfo;}public function setAdditionalInfo(?string $additionalInfo): void{$this->additionalInfo = $additionalInfo;}public function getVideo(): ?string{return $this->video;}public function setVideo(?string $video): void{$this->video = $video;}public function isPhoneAllowed(): ?bool{return $this->phoneAllowed;}/*** @return Collection<int, ProhibitedCases>*/public function getProhibitedCases(): Collection{return $this->prohibitedCases;}public function addProhibitedCase(ProhibitedCases $prohibitedCase): static{if (!$this->prohibitedCases->contains($prohibitedCase)) {$this->prohibitedCases->add($prohibitedCase);}return $this;}public function removeProhibitedCase(ProhibitedCases $prohibitedCase): static{$this->prohibitedCases->removeElement($prohibitedCase);return $this;}}