src/Entity/Gestiform/Admin/ApiGestiform.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity\Gestiform\Admin;
  3. use App\Entity\AbstractEntity;
  4. use App\Repository\Gestiform\Admin\ApiGestiformRepository;
  5. use Doctrine\ORM\Mapping as ORM;
  6. /**
  7.  * @ORM\Entity(repositoryClass=ApiGestiformRepository::class)
  8.  */
  9. class ApiGestiform extends AbstractEntity
  10. {
  11.     /**
  12.      * @ORM\Column(type="string", length=50, nullable=false)
  13.      */
  14.     private string $code;
  15.     /**
  16.      * @ORM\Column(type="string", length=50, nullable=false)
  17.      */
  18.     private string $slug;
  19.     /**
  20.      * @ORM\Column(type="string", length=255, nullable=false)
  21.      */
  22.     private string $intitule;
  23.     /**
  24.      * @ORM\Column(type="boolean")
  25.      */
  26.     private bool $postulant false;
  27.     /**
  28.      * @ORM\ManyToOne(targetEntity=Societe::class)
  29.      * @ORM\JoinColumn(nullable=false)
  30.      */
  31.     private Societe $societeParDefaut;
  32.     public function getCode(): string
  33.     {
  34.         return $this->code;
  35.     }
  36.     public function setCode(string $code): self
  37.     {
  38.         $this->code $code;
  39.         return $this;
  40.     }
  41.     public function getSlug(): string
  42.     {
  43.         return $this->slug;
  44.     }
  45.     public function setSlug(string $slug): self
  46.     {
  47.         $this->slug $slug;
  48.         return $this;
  49.     }
  50.     public function getIntitule(): string
  51.     {
  52.         return $this->intitule;
  53.     }
  54.     public function setIntitule(string $intitule): self
  55.     {
  56.         $this->intitule $intitule;
  57.         return $this;
  58.     }
  59.     public function isPostulant(): bool
  60.     {
  61.         return $this->postulant;
  62.     }
  63.     public function setPostulant(bool $postulant): self
  64.     {
  65.         $this->postulant $postulant;
  66.         return $this;
  67.     }
  68.     public function getSocieteParDefaut(): Societe
  69.     {
  70.         return $this->societeParDefaut;
  71.     }
  72.     public function setSocieteParDefaut(Societe $societeParDefaut): self
  73.     {
  74.         $this->societeParDefaut $societeParDefaut;
  75.         return $this;
  76.     }
  77. }