src/Entity/CertResultFinal.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\CertResultFinalRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. /**
  6.  * @ORM\Entity(repositoryClass=CertResultFinalRepository::class)
  7.  */
  8. class CertResultFinal
  9. {
  10.     /**
  11.      * @ORM\Id
  12.      * @ORM\GeneratedValue
  13.      * @ORM\Column(type="integer")
  14.      */
  15.     private $id;
  16.     /**
  17.      * @ORM\Column(type="string", length=255)
  18.      */
  19.     private $title;
  20.     /**
  21.      * @ORM\Column(type="string", length=255, nullable=true)
  22.      */
  23.     private $valeur;
  24.     /**
  25.      * @ORM\Column(type="boolean", nullable=true)
  26.      */
  27.     private $yon;
  28.     /**
  29.      * @ORM\OneToOne(targetEntity=CertCertificat::class, mappedBy="resultFinal", cascade={"persist", "remove"})
  30.      */
  31.     private $certCertificat;
  32.     /**
  33.      * @ORM\Column(type="string", length=255, nullable=true)
  34.      */
  35.     private $uniteValeur;
  36.     public function getId(): ?int
  37.     {
  38.         return $this->id;
  39.     }
  40.     public function getTitle(): ?string
  41.     {
  42.         return $this->title;
  43.     }
  44.     public function setTitle(string $title): self
  45.     {
  46.         $this->title $title;
  47.         return $this;
  48.     }
  49.     public function getValeur(): ?string
  50.     {
  51.         return $this->valeur;
  52.     }
  53.     public function setValeur(?string $valeur): self
  54.     {
  55.         $this->valeur $valeur;
  56.         return $this;
  57.     }
  58.     public function isYon(): ?bool
  59.     {
  60.         return $this->yon;
  61.     }
  62.     public function setYon(?bool $yon): self
  63.     {
  64.         $this->yon $yon;
  65.         return $this;
  66.     }
  67.     public function getCertCertificat(): ?CertCertificat
  68.     {
  69.         return $this->certCertificat;
  70.     }
  71.     public function setCertCertificat(?CertCertificat $certCertificat): self
  72.     {
  73.         // unset the owning side of the relation if necessary
  74.         if ($certCertificat === null && $this->certCertificat !== null) {
  75.             $this->certCertificat->setResultFinal(null);
  76.         }
  77.         // set the owning side of the relation if necessary
  78.         if ($certCertificat !== null && $certCertificat->getResultFinal() !== $this) {
  79.             $certCertificat->setResultFinal($this);
  80.         }
  81.         $this->certCertificat $certCertificat;
  82.         return $this;
  83.     }
  84.     public function getUniteValeur(): ?string
  85.     {
  86.         return $this->uniteValeur;
  87.     }
  88.     public function setUniteValeur(?string $uniteValeur): self
  89.     {
  90.         $this->uniteValeur $uniteValeur;
  91.         return $this;
  92.     }
  93. }