src/Entity/WantedVisio.php line 9
<?php
namespace App\Entity;
use App\Repository\WantedVisioRepository;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: WantedVisioRepository::class)]
class WantedVisio
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\ManyToOne(inversedBy: 'wantedVisios')]
private ?User $requester = null;
#[ORM\ManyToOne(inversedBy: 'wantedVisios')]
private ?Building $building = null;
#[ORM\Column]
private ?\DateTimeImmutable $createdAt = null;
public function getId(): ?int
{
return $this->id;
}
public function getRequester(): ?User
{
return $this->requester;
}
public function setRequester(?User $requester): self
{
$this->requester = $requester;
return $this;
}
public function getBuilding(): ?Building
{
return $this->building;
}
public function setBuilding(?Building $building): self
{
$this->building = $building;
return $this;
}
public function getCreatedAt(): ?\DateTimeImmutable
{
return $this->createdAt;
}
public function setCreatedAt(\DateTimeImmutable $createdAt): self
{
$this->createdAt = $createdAt;
return $this;
}
}