src/Entity/BuildingEditHistory.php line 9
<?php
namespace App\Entity;
use App\Repository\BuildingEditHistoryRepository;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: BuildingEditHistoryRepository::class)]
class BuildingEditHistory
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column]
private ?int $id = null;
#[ORM\Column]
private ?\DateTimeImmutable $editedAt = null;
#[ORM\ManyToOne(inversedBy: 'buildingEditHistories')]
private ?Building $building = null;
public function getId(): ?int
{
return $this->id;
}
public function getEditedAt(): ?\DateTimeImmutable
{
return $this->editedAt;
}
public function setEditedAt(\DateTimeImmutable $editedAt): self
{
$this->editedAt = $editedAt;
return $this;
}
public function getBuilding(): ?Building
{
return $this->building;
}
public function setBuilding(?Building $building): self
{
$this->building = $building;
return $this;
}
}