<?phpnamespace App\Entity;use App\Repository\ParkingMatrixRawRepository;use Doctrine\Common\Collections\ArrayCollection;use Doctrine\Common\Collections\Collection;use Doctrine\ORM\Mapping as ORM;#[ORM\Entity(repositoryClass: ParkingMatrixRawRepository::class)]class ParkingMatrixRaw{ #[ORM\Id] #[ORM\GeneratedValue] #[ORM\Column] private ?int $id = null; #[ORM\ManyToMany(targetEntity: Parking::class, inversedBy: 'parkingMatrixRaws')] private Collection $owner; #[ORM\ManyToMany(targetEntity: Days::class, inversedBy: 'parkingMatrixRaws')] private Collection $day; #[ORM\ManyToMany(targetEntity: DayTime::class, inversedBy: 'parkingMatrixRaws')] private Collection $daytime; #[ORM\Column(nullable: true)] private ?bool $isparked = null; public function __construct() { $this->owner = new ArrayCollection(); $this->day = new ArrayCollection(); $this->daytime = new ArrayCollection(); } public function getId(): ?int { return $this->id; } public function __toString() { return $this->getId(); } /** * @return Collection<int, Parking> */ public function getOwner(): Collection { return $this->owner; } public function addOwner(Parking $owner): static { if (!$this->owner->contains($owner)) { $this->owner->add($owner); } return $this; } public function removeOwner(Parking $owner): static { $this->owner->removeElement($owner); return $this; } /** * @return Collection<int, Days> */ public function getDay(): Collection { return $this->day; } public function addDay(Days $day): static { if (!$this->day->contains($day)) { $this->day->add($day); } return $this; } public function removeDay(Days $day): static { $this->day->removeElement($day); return $this; } /** * @return Collection<int, DayTime> */ public function getDaytime(): Collection { return $this->daytime; } public function addDaytime(DayTime $daytime): static { if (!$this->daytime->contains($daytime)) { $this->daytime->add($daytime); } return $this; } public function removeDaytime(DayTime $daytime): static { $this->daytime->removeElement($daytime); return $this; } public function isIsparked(): ?bool { return $this->isparked; } public function setIsparked(?bool $isparked): static { $this->isparked = $isparked; return $this; }}