<?phpnamespace App\Entity;use App\Repository\CertResultFinalRepository;use Doctrine\ORM\Mapping as ORM;/** * @ORM\Entity(repositoryClass=CertResultFinalRepository::class) */class CertResultFinal{ /** * @ORM\Id * @ORM\GeneratedValue * @ORM\Column(type="integer") */ private $id; /** * @ORM\Column(type="string", length=255) */ private $title; /** * @ORM\Column(type="string", length=255, nullable=true) */ private $valeur; /** * @ORM\Column(type="boolean", nullable=true) */ private $yon; /** * @ORM\OneToOne(targetEntity=CertCertificat::class, mappedBy="resultFinal", cascade={"persist", "remove"}) */ private $certCertificat; /** * @ORM\Column(type="string", length=255, nullable=true) */ private $uniteValeur; public function getId(): ?int { return $this->id; } public function getTitle(): ?string { return $this->title; } public function setTitle(string $title): self { $this->title = $title; return $this; } public function getValeur(): ?string { return $this->valeur; } public function setValeur(?string $valeur): self { $this->valeur = $valeur; return $this; } public function isYon(): ?bool { return $this->yon; } public function setYon(?bool $yon): self { $this->yon = $yon; return $this; } public function getCertCertificat(): ?CertCertificat { return $this->certCertificat; } public function setCertCertificat(?CertCertificat $certCertificat): self { // unset the owning side of the relation if necessary if ($certCertificat === null && $this->certCertificat !== null) { $this->certCertificat->setResultFinal(null); } // set the owning side of the relation if necessary if ($certCertificat !== null && $certCertificat->getResultFinal() !== $this) { $certCertificat->setResultFinal($this); } $this->certCertificat = $certCertificat; return $this; } public function getUniteValeur(): ?string { return $this->uniteValeur; } public function setUniteValeur(?string $uniteValeur): self { $this->uniteValeur = $uniteValeur; return $this; }}