src/Entity/WantedVisio.php line 9

  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\WantedVisioRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClassWantedVisioRepository::class)]
  6. class WantedVisio
  7. {
  8.     #[ORM\Id]
  9.     #[ORM\GeneratedValue]
  10.     #[ORM\Column]
  11.     private ?int $id null;
  12.     #[ORM\ManyToOne(inversedBy'wantedVisios')]
  13.     private ?User $requester null;
  14.     #[ORM\ManyToOne(inversedBy'wantedVisios')]
  15.     private ?Building $building null;
  16.     #[ORM\Column]
  17.     private ?\DateTimeImmutable $createdAt null;
  18.     public function getId(): ?int
  19.     {
  20.         return $this->id;
  21.     }
  22.     public function getRequester(): ?User
  23.     {
  24.         return $this->requester;
  25.     }
  26.     public function setRequester(?User $requester): self
  27.     {
  28.         $this->requester $requester;
  29.         return $this;
  30.     }
  31.     public function getBuilding(): ?Building
  32.     {
  33.         return $this->building;
  34.     }
  35.     public function setBuilding(?Building $building): self
  36.     {
  37.         $this->building $building;
  38.         return $this;
  39.     }
  40.     public function getCreatedAt(): ?\DateTimeImmutable
  41.     {
  42.         return $this->createdAt;
  43.     }
  44.     public function setCreatedAt(\DateTimeImmutable $createdAt): self
  45.     {
  46.         $this->createdAt $createdAt;
  47.         return $this;
  48.     }
  49. }