src/Entity/RefPays.php line 13

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