src/Entity/Pays.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. use App\Repository\PaysRepository;
  5. use App\Traits\TimstampleTrait;
  6. #[ORM\Entity(repositoryClassPaysRepository::class)]
  7. #[ORM\Table(name'countries')]
  8. class Pays
  9. {
  10.     #[ORM\Id]
  11.     #[ORM\GeneratedValue]
  12.     #[ORM\Column(type'integer')]
  13.     private $id;
  14.     #[ORM\Column(type'string'length191nullabletrue)]
  15.     private $nationalite;
  16.     #[ORM\Column(type'string'length191)]
  17.     private $pays;
  18.     #[ORM\Column(type'string'length50nullabletrue)]
  19.     private $indicatif;
  20.     #[ORM\Column(type'string'length100nullabletrue)]
  21.     private $codePays;
  22.     #[ORM\Column(type'string'length255nullabletrue)]
  23.     private $flag;
  24.     #[ORM\Column(type'string'length100nullabletrue)]
  25.     private $paysIso;
  26.     public function getId(): ?int
  27.     {
  28.         return $this->id;
  29.     }
  30.     public function __toString()
  31.     {
  32.         return $this->pays;
  33.     }
  34.     /**
  35.      * Get the value of pays
  36.      */ 
  37.     public function getPays()
  38.     {
  39.         return $this->pays;
  40.     }
  41.     /**
  42.      * Set the value of pays
  43.      *
  44.      * @return  self
  45.      */ 
  46.     public function setPays($pays)
  47.     {
  48.         $this->pays $pays;
  49.         return $this;
  50.     }
  51.     /**
  52.      * Get the value of nationalite
  53.      */ 
  54.     public function getNationalite()
  55.     {
  56.         return $this->nationalite;
  57.     }
  58.     /**
  59.      * Set the value of nationalite
  60.      *
  61.      * @return  self
  62.      */ 
  63.     public function setNationalite($nationalite)
  64.     {
  65.         $this->nationalite $nationalite;
  66.         return $this;
  67.     }
  68.     /**
  69.      * Get the value of indicatif
  70.      */ 
  71.     public function getIndicatif()
  72.     {
  73.         return $this->indicatif;
  74.     }
  75.     /**
  76.      * Set the value of indicatif
  77.      *
  78.      * @return  self
  79.      */ 
  80.     public function setIndicatif($indicatif)
  81.     {
  82.         $this->indicatif $indicatif;
  83.         return $this;
  84.     }
  85.     /**
  86.      * Get the value of codePays
  87.      */ 
  88.     public function getCodePays()
  89.     {
  90.         return $this->codePays;
  91.     }
  92.     /**
  93.      * Set the value of codePays
  94.      *
  95.      * @return  self
  96.      */ 
  97.     public function setCodePays($codePays)
  98.     {
  99.         $this->codePays $codePays;
  100.         return $this;
  101.     }
  102.     /**
  103.      * Get the value of flag
  104.      */ 
  105.     public function getFlag()
  106.     {
  107.         return $this->flag;
  108.     }
  109.     /**
  110.      * Set the value of flag
  111.      *
  112.      * @return  self
  113.      */ 
  114.     public function setFlag($flag)
  115.     {
  116.         $this->flag $flag;
  117.         return $this;
  118.     }
  119.     /**
  120.      * Get the value of paysIso
  121.      */ 
  122.     public function getPaysIso()
  123.     {
  124.         return $this->paysIso;
  125.     }
  126.     /**
  127.      * Set the value of paysIso
  128.      *
  129.      * @return  self
  130.      */ 
  131.     public function setPaysIso($paysIso)
  132.     {
  133.         $this->paysIso $paysIso;
  134.         return $this;
  135.     }
  136. }