src/Entity/RefCountry.php line 11

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use App\Repository\RefCountryRepository;
  4. use Doctrine\Common\Collections\ArrayCollection;
  5. use Doctrine\Common\Collections\Collection;
  6. use Doctrine\ORM\Mapping as ORM;
  7. #[ORM\Entity(repositoryClass: RefCountryRepository::class)]
  8. class RefCountry
  9. {
  10.     #[ORM\Id]
  11.     #[ORM\GeneratedValue]
  12.     #[ORM\Column(type: 'integer')]
  13.     private $id;
  14.     #[ORM\Column(type: 'string', length: 2, nullable: true)]
  15.     private $iso;
  16.     #[ORM\Column(type: 'string', length: 80, nullable: true)]
  17.     private $name;
  18.     #[ORM\Column(type: 'string', length: 80, nullable: true)]
  19.     private $nicename;
  20.     #[ORM\Column(type: 'string', length: 3, nullable: true)]
  21.     private $iso3;
  22.     #[ORM\Column(type: 'integer', nullable: true)]
  23.     private $numcode;
  24.     #[ORM\Column(type: 'integer', nullable: true)]
  25.     private $phonecode;
  26.     public function __construct(){}
  27.     public function getId(): ?int
  28.     {
  29.         return $this->id;
  30.     }
  31.     public function getIso(): ?string
  32.     {
  33.         return $this->iso;
  34.     }
  35.     public function setIso(?string $iso): self
  36.     {
  37.         $this->iso = $iso;
  38.         return $this;
  39.     }
  40.     public function getName(): ?string
  41.     {
  42.         return $this->name;
  43.     }
  44.     public function setName(?string $name): self
  45.     {
  46.         $this->name = $name;
  47.         return $this;
  48.     }
  49.     public function getNicename(): ?string
  50.     {
  51.         return $this->nicename;
  52.     }
  53.     public function setNicename(?string $nicename): self
  54.     {
  55.         $this->nicename = $nicename;
  56.         return $this;
  57.     }
  58.     public function getIso3(): ?string
  59.     {
  60.         return $this->iso3;
  61.     }
  62.     public function setIso3(?string $iso3): self
  63.     {
  64.         $this->iso3 = $iso3;
  65.         return $this;
  66.     }
  67.     public function getNumcode(): ?int
  68.     {
  69.         return $this->numcode;
  70.     }
  71.     public function setNumcode(?int $numcode): self
  72.     {
  73.         $this->numcode = $numcode;
  74.         return $this;
  75.     }
  76.     public function getPhonecode(): ?int
  77.     {
  78.         return $this->phonecode;
  79.     }
  80.     public function setPhonecode(?int $phonecode): self
  81.     {
  82.         $this->phonecode = $phonecode;
  83.         return $this;
  84.     }
  85. }