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

  1. <?php
  2. namespace App\Entity\Gestiform\Admin;
  3. use App\Entity\AbstractEntity;
  4. use App\Entity\Gestiform\Admin\MasterListe\Masterlistelg;
  5. use App\Entity\Trait\ApiGestiformEntity;
  6. use App\Entity\Trait\SortableEntity;
  7. use App\Repository\Gestiform\Admin\ProfilRepository;
  8. use Doctrine\ORM\Mapping as ORM;
  9. #[ORM\Entity(repositoryClass: ProfilRepository::class)]
  10. class Profil extends AbstractEntity
  11. {
  12.     use SortableEntity, ApiGestiformEntity;
  13.     #[ORM\Column(type: 'string', length: 255, nullable: false)]
  14.     private string $intitule;
  15.     #[ORM\Column(type: 'string', length: 255, nullable: true)]
  16.     private ?string $code = null;
  17.     #[ORM\ManyToOne(targetEntity: Masterlistelg::class)]
  18.     private ?Masterlistelg $typeFormulaire = null;
  19.     #[ORM\Column(type: 'decimal', precision: 10, scale: 2, nullable: true)]
  20.     private ?string $remisePourc = null;
  21.     public function getIntitule(): ?string
  22.     {
  23.         return $this->intitule;
  24.     }
  25.     public function setIntitule(string $intitule): self
  26.     {
  27.         $this->intitule = $intitule;
  28.         return $this;
  29.     }
  30.     public function getCode(): ?string
  31.     {
  32.         return $this->code;
  33.     }
  34.     public function setCode(?string $code): self
  35.     {
  36.         $this->code = $code;
  37.         return $this;
  38.     }
  39.     public function getTypeFormulaire(): ?Masterlistelg
  40.     {
  41.         return $this->typeFormulaire;
  42.     }
  43.     public function setTypeFormulaire(?Masterlistelg $typeFormulaire): self
  44.     {
  45.         $this->typeFormulaire = $typeFormulaire;
  46.         return $this;
  47.     }
  48.     public function getRemisePourc(): ?float
  49.     {
  50.     return (float) $this->remisePourc;
  51.     }
  52.     public function setRemisePourc(?float $remisePourc): self
  53.     {
  54.     $this->remisePourc = $remisePourc !== null ? (string) $remisePourc : null;
  55.     return $this;
  56.     }
  57. }