src/Entity/Gestiform/Admin/Profil.php line 16

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Gestiform\Admin;
  3. use App\Entity\AbstractEntity;
  4. use App\Entity\Gestiform\Admin\MasterListe\Masterlistelg;
  5. use App\Repository\Gestiform\Admin\ProfilRepository;
  6. use App\Trait\ApiGestiformEntity;
  7. use App\Trait\SortableEntity;
  8. use Doctrine\DBAL\Types\Types;
  9. use Doctrine\ORM\Mapping as ORM;
  10. /**
  11.  * @ORM\Entity(repositoryClass=ProfilRepository::class)
  12.  */
  13. class Profil extends AbstractEntity
  14. {
  15.     use SortableEntityApiGestiformEntity;
  16.     /**
  17.      * @ORM\Column(type="string", length=255, nullable=false)
  18.      */
  19.     private string $intitule;
  20.     /**
  21.      * @ORM\Column(type="string", length=255, nullable=true)
  22.      */
  23.     private ?string $code null;
  24.     /**
  25.      * @ORM\ManyToOne(targetEntity=Masterlistelg::class)
  26.      */
  27.     private ?Masterlistelg $typeFormulaire null;
  28.     /**
  29.      * @ORM\Column(type="decimal", precision=10, scale=2, nullable=true)
  30.      */
  31.     private ?int $remisePourc null;
  32.     public function getIntitule(): ?string
  33.     {
  34.         return $this->intitule;
  35.     }
  36.     public function setIntitule(string $intitule): self
  37.     {
  38.         $this->intitule $intitule;
  39.         return $this;
  40.     }
  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 getTypeFormulaire(): ?Masterlistelg
  51.     {
  52.         return $this->typeFormulaire;
  53.     }
  54.     public function setTypeFormulaire(?Masterlistelg $typeFormulaire): self
  55.     {
  56.         $this->typeFormulaire $typeFormulaire;
  57.         return $this;
  58.     }
  59.     public function getRemisePourc(): ?int
  60.     {
  61.         return $this->remisePourc;
  62.     }
  63.     public function setRemisePourc(?int $remisePourc): self
  64.     {
  65.         $this->remisePourc $remisePourc;
  66.         return $this;
  67.     }
  68. }