src/Entity/BuildingEditHistory.php line 9

  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\BuildingEditHistoryRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. #[ORM\Entity(repositoryClassBuildingEditHistoryRepository::class)]
  6. class BuildingEditHistory
  7. {
  8.     #[ORM\Id]
  9.     #[ORM\GeneratedValue]
  10.     #[ORM\Column]
  11.     private ?int $id null;
  12.     #[ORM\Column]
  13.     private ?\DateTimeImmutable $editedAt null;
  14.     #[ORM\ManyToOne(inversedBy'buildingEditHistories')]
  15.     private ?Building $building null;
  16.     public function getId(): ?int
  17.     {
  18.         return $this->id;
  19.     }
  20.     public function getEditedAt(): ?\DateTimeImmutable
  21.     {
  22.         return $this->editedAt;
  23.     }
  24.     public function setEditedAt(\DateTimeImmutable $editedAt): self
  25.     {
  26.         $this->editedAt $editedAt;
  27.         return $this;
  28.     }
  29.     public function getBuilding(): ?Building
  30.     {
  31.         return $this->building;
  32.     }
  33.     public function setBuilding(?Building $building): self
  34.     {
  35.         $this->building $building;
  36.         return $this;
  37.     }
  38. }