src/Entity/RefFonction.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\RefFonctionRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use Gedmo\Mapping\Annotation as Gedmo;
  6. /**
  7.  * @ORM\Entity(repositoryClass=RefFonctionRepository::class)
  8.  * @Gedmo\Loggable
  9.  */
  10. class RefFonction
  11. {
  12.     
  13.     public const ID_SALARIE '3';
  14.            const TYPE_POLYVALENT 9;
  15.     /**
  16.      * @ORM\Id
  17.      * @ORM\GeneratedValue
  18.      * @ORM\Column(type="integer")
  19.      */
  20.     private $id;
  21.     /**
  22.      * @ORM\Column(type="string", length=255)
  23.      * @Gedmo\Versioned
  24.      */
  25.     private $fonctionLib;
  26.     public function __toString()
  27.     {
  28.         return $this->getFonctionLib();
  29.     }
  30.     public function getId(): ?int
  31.     {
  32.         return $this->id;
  33.     }
  34.     public function getFonctionLib(): ?string
  35.     {
  36.         return $this->fonctionLib;
  37.     }
  38.     public function setFonctionLib(string $fonctionLib): self
  39.     {
  40.         $this->fonctionLib $fonctionLib;
  41.         return $this;
  42.     }
  43. }