<?php
namespace App\Entity\Fiche;
use App\Repository\Fiche\FicheBatimentExempleRepository;
use Doctrine\ORM\Mapping as ORM;
#[ORM\Entity(repositoryClass: FicheBatimentExempleRepository::class)]
class FicheBatimentExemple
{
#[ORM\Id]
#[ORM\GeneratedValue]
#[ORM\Column(type: 'integer')]
private $id;
#[ORM\OneToOne(targetEntity: FicheBatiment::class, inversedBy: 'theFicheBatimentExemple')]
private $theFicheBatiment;
public function getId(): ?int
{
return $this->id;
}
public function getTheFicheBatiment(): ?FicheBatiment
{
return $this->theFicheBatiment;
}
public function setTheFicheBatiment(?FicheBatiment $theFicheBatiment): self
{
$this->theFicheBatiment = $theFicheBatiment;
if ($theFicheBatiment != null) {
$theFicheBatiment->setTheFicheBatimentExemple($this);
}
return $this;
}
}