<?phpnamespace App\Entity;use App\Repository\BusinessRepository;use Doctrine\Common\Collections\ArrayCollection;use Doctrine\Common\Collections\Collection;use Doctrine\ORM\Mapping as ORM;#[ORM\Entity(repositoryClass: BusinessRepository::class)]class Business extends \App\Entity\Node{ #[ORM\Column(type: "text", nullable: true)] private $about; #[ORM\Column] private ?bool $isCinema = null; #[ORM\OneToMany(mappedBy: 'node', targetEntity: Movie::class)] #[ORM\OrderBy(['timeFrom','ASC'])] private Collection $movies; #[ORM\Column] private ?bool $isCenter = null; #[ORM\Column(length: 255, nullable: true)] private ?string $cinemaFeed = null; #[ORM\OneToOne(cascade: ['persist', 'remove'])] private ?Contact $address = null; #[ORM\Column(nullable: true)] private ?bool $isVacationClosed = null; #[ORM\ManyToOne(inversedBy: 'businesses')] private ?Category $category = null; #[ORM\OneToOne(cascade: ['persist', 'remove'])] private ?Image $logo = null; #[ORM\Column(length: 10, nullable: true)] private ?string $position = null; #[ORM\Column(length: 255, nullable: true)] private ?string $map = null; #[ORM\Column] private ?int $floor = null; public function __construct() { parent::__construct(); } public function isIsCinema(): ?bool { return $this->isCinema; } public function setIsCinema(bool $isCinema): static { $this->isCinema = $isCinema; return $this; } /** * @return Collection<int, Movie> */ public function getMovies(): Collection { return $this->movies; } public function addMovie(Movie $movie): static { if (!$this->movies->contains($movie)) { $this->movies->add($movie); $movie->setNode($this); } return $this; } public function removeMovie(Movie $movie): static { if ($this->movies->removeElement($movie)) { // set the owning side to null (unless already changed) if ($movie->getNode() === $this) { $movie->setNode(null); } } return $this; } public function isIsCenter(): ?bool { return $this->isCenter; } public function setIsCenter(bool $isCenter): static { $this->isCenter = $isCenter; return $this; } /** * @return mixed */ public function getAbout() { return $this->about; } /** * @param mixed $about */ public function setAbout($about): void { $this->about = $about; } public function getCinemaFeed(): ?string { return $this->cinemaFeed; } public function setCinemaFeed(?string $cinemaFeed): static { $this->cinemaFeed = $cinemaFeed; return $this; } public function getAddress(): ?Contact { return $this->address; } public function setAddress(?Contact $address): static { $this->address = $address; return $this; } public function isIsVacationClosed(): ?bool { return $this->isVacationClosed; } public function setIsVacationClosed(?bool $isVacationClosed): static { $this->isVacationClosed = $isVacationClosed; return $this; } public function getCategory(): ?Category { return $this->category; } public function setCategory(?Category $category): void { $this->category = $category; } public function getLogo(): ?Image { return $this->logo; } public function setLogo(?Image $logo): static { $this->logo = $logo; return $this; } public function getPosition(): ?string { return $this->position; } public function setPosition(?string $position): static { $this->position = $position; return $this; } public function getMap(): ?string { return $this->map; } public function setMap(?string $map): static { $this->map = $map; return $this; } public function getBusinessFormName(): string { return $this->title.' '.$this->parent->getTitle(); } public function getFloor(): ?int { return $this->floor; } public function setFloor(int $floor): static { $this->floor = $floor; return $this; }}