<?phpnamespace App\Entity;use App\Repository\NotificationRepository;use Doctrine\ORM\Mapping as ORM;/** * @ORM\Entity(repositoryClass=NotificationRepository::class) */class Notification{ /** * @ORM\Id * @ORM\GeneratedValue * @ORM\Column(type="integer") */ private $id; /** * @ORM\ManyToOne(targetEntity=Company::class, inversedBy="notifications") */ private $company; /** * @ORM\ManyToOne(targetEntity=Annonce::class, inversedBy="notifications",fetch="EAGER") */ private $annonce; /** * @ORM\Column(type="boolean") */ private $isReservationNotification; /** * @ORM\Column(type="boolean") */ private $isClicked; /** * @ORM\ManyToOne(targetEntity=User::class, inversedBy="notificationReservation") */ private $customer; /** * @ORM\Column(type="datetime", nullable=true) */ private $createdAt; /** * @ORM\ManyToOne(targetEntity=Product::class, inversedBy="notificationReservation") */ private $product; public function getId(): ?int { return $this->id; } public function getCompany(): ?Company { return $this->company; } public function setCompany(?Company $company): self { $this->company = $company; return $this; } public function getAnnonce(): ?Annonce { return $this->annonce; } public function setAnnonce(?Annonce $annonce): self { $this->annonce = $annonce; return $this; } public function getIsReservationNotification(): ?bool { return $this->isReservationNotification; } public function setIsReservationNotification(bool $isReservationNotification): self { $this->isReservationNotification = $isReservationNotification; return $this; } public function getIsClicked(): ?bool { return $this->isClicked; } public function setIsClicked(bool $isClicked): self { $this->isClicked = $isClicked; return $this; } public function getCustomer(): ?User { return $this->customer; } public function setCustomer(?User $customer): self { $this->customer = $customer; return $this; } public function getCreatedAt(): ?\DateTimeInterface { return $this->createdAt; } public function setCreatedAt(?\DateTimeInterface $createdAt): self { $this->createdAt = $createdAt; return $this; } public function getProduct(): ?Product { return $this->product; } public function setProduct(?Product $product): self { $this->product = $product; return $this; }}