src/Entity/RefTypePersonnel.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\RefTypePersonnelRepository;
  4. use Doctrine\ORM\Mapping as ORM;
  5. use Gedmo\Mapping\Annotation as Gedmo;
  6. /**
  7.  * @ORM\Entity(repositoryClass=RefTypePersonnelRepository::class)
  8.  * @Gedmo\Loggable
  9.  */
  10. class RefTypePersonnel
  11. {
  12.     /**
  13.      * @ORM\Id
  14.      * @ORM\GeneratedValue
  15.      * @ORM\Column(type="integer")
  16.      */
  17.     private $id;
  18.     /**
  19.      * @ORM\Column(type="string", length=20)
  20.      * @Gedmo\Versioned
  21.      */
  22.     private $typeLib;
  23.     /**
  24.      * @ORM\Column(type="string", length=10)
  25.      * @Gedmo\Versioned
  26.      */
  27.     private $typeLibCourt;
  28.     public function __toString()
  29.     {
  30.         return $this->getTypeLib();
  31.     }
  32.     public function getId(): ?int
  33.     {
  34.         return $this->id;
  35.     }
  36.     public function getTypeLib(): ?string
  37.     {
  38.         return $this->typeLib;
  39.     }
  40.     public function setTypeLib(string $typeLib): self
  41.     {
  42.         $this->typeLib $typeLib;
  43.         return $this;
  44.     }
  45.     public function getTypeLibCourt(): ?string
  46.     {
  47.         return $this->typeLibCourt;
  48.     }
  49.     public function setTypeLibCourt(string $typeLibCourt): self
  50.     {
  51.         $this->typeLibCourt $typeLibCourt;
  52.         return $this;
  53.     }
  54. }