src/Entity/Gestiform/Admin/MasterListe/Masterlistelg.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Gestiform\Admin\MasterListe;
  3. use App\Entity\AbstractEntity;
  4. use App\Repository\Gestiform\Admin\MasterlistelgRepository;
  5. use App\Trait\ApiGestiformEntity;
  6. use Doctrine\ORM\Mapping as ORM;
  7. /**
  8.  * @ORM\Entity(repositoryClass=MasterlistelgRepository::class)
  9.  */
  10. class Masterlistelg extends AbstractEntity
  11. {
  12.     use ApiGestiformEntity;
  13.     /**
  14.      * @ORM\Column(type="string", length=255, nullable=true)
  15.      */
  16.     private ?string $code null;
  17.     /**
  18.      * @ORM\Column(type="string", length=255, nullable=true)
  19.      */
  20.     private ?string $designation null;
  21.     /**
  22.      * @ORM\Column(type="text", nullable=true)
  23.      */
  24.     private ?string $valeur null;
  25.     /**
  26.      * @ORM\Column(type="text", nullable=true)
  27.      */
  28.     private ?string $valeur2 null;
  29.     /**
  30.      * @ORM\Column(type="text", nullable=true)
  31.      */
  32.     private ?string $htmlvaleur null;
  33.     /**
  34.      * @ORM\Column(type="text", nullable=true)
  35.      */
  36.     private ?string $valeur3 null;
  37.     /**
  38.      * @ORM\ManyToOne(targetEntity=Masterliste::class, inversedBy="masterlistelgs")
  39.      */
  40.     private Masterliste $masterliste;
  41.     public function getCode(): ?string
  42.     {
  43.         return $this->code;
  44.     }
  45.     public function setCode(?string $code): self
  46.     {
  47.         $this->code $code;
  48.         return $this;
  49.     }
  50.     public function getDesignation(): ?string
  51.     {
  52.         return $this->designation;
  53.     }
  54.     public function setDesignation(?string $designation): self
  55.     {
  56.         $this->designation $designation;
  57.         return $this;
  58.     }
  59.     public function getValeur(): ?string
  60.     {
  61.         return $this->valeur;
  62.     }
  63.     public function setValeur(?string $valeur): self
  64.     {
  65.         $this->valeur $valeur;
  66.         return $this;
  67.     }
  68.     public function getValeur2(): ?string
  69.     {
  70.         return $this->valeur2;
  71.     }
  72.     public function setValeur2(?string $valeur2): self
  73.     {
  74.         $this->valeur2 $valeur2;
  75.         return $this;
  76.     }
  77.     public function getHtmlvaleur(): ?string
  78.     {
  79.         return $this->htmlvaleur;
  80.     }
  81.     public function setHtmlvaleur(?string $htmlvaleur): self
  82.     {
  83.         $this->htmlvaleur $htmlvaleur;
  84.         return $this;
  85.     }
  86.     public function getValeur3(): ?string
  87.     {
  88.         return $this->valeur3;
  89.     }
  90.     public function setValeur3(?string $valeur3): self
  91.     {
  92.         $this->valeur3 $valeur3;
  93.         return $this;
  94.     }
  95.     public function getMasterliste(): ?Masterliste
  96.     {
  97.         return $this->masterliste;
  98.     }
  99.     public function setMasterliste(?Masterliste $masterliste): self
  100.     {
  101.         $this->masterliste $masterliste;
  102.         return $this;
  103.     }
  104.     public function getFullDesignation(): string
  105.     {
  106.         return $this->getCode() . ' ' $this->getDesignation();
  107.     }
  108. }