<?php
namespace App\Entity\Gestiform\Admin;
use App\Entity\AbstractEntity;
use App\Entity\Gestiform\Admin\MasterListe\Masterlistelg;
use App\Repository\Gestiform\Admin\ProfilRepository;
use App\Trait\ApiGestiformEntity;
use App\Trait\SortableEntity;
use Doctrine\DBAL\Types\Types;
use Doctrine\ORM\Mapping as ORM;
/**
* @ORM\Entity(repositoryClass=ProfilRepository::class)
*/
class Profil extends AbstractEntity
{
use SortableEntity, ApiGestiformEntity;
/**
* @ORM\Column(type="string", length=255, nullable=false)
*/
private string $intitule;
/**
* @ORM\Column(type="string", length=255, nullable=true)
*/
private ?string $code = null;
/**
* @ORM\ManyToOne(targetEntity=Masterlistelg::class)
*/
private ?Masterlistelg $typeFormulaire = null;
/**
* @ORM\Column(type="decimal", precision=10, scale=2, nullable=true)
*/
private ?int $remisePourc = null;
public function getIntitule(): ?string
{
return $this->intitule;
}
public function setIntitule(string $intitule): self
{
$this->intitule = $intitule;
return $this;
}
public function getCode(): ?string
{
return $this->code;
}
public function setCode(?string $code): self
{
$this->code = $code;
return $this;
}
public function getTypeFormulaire(): ?Masterlistelg
{
return $this->typeFormulaire;
}
public function setTypeFormulaire(?Masterlistelg $typeFormulaire): self
{
$this->typeFormulaire = $typeFormulaire;
return $this;
}
public function getRemisePourc(): ?int
{
return $this->remisePourc;
}
public function setRemisePourc(?int $remisePourc): self
{
$this->remisePourc = $remisePourc;
return $this;
}
}