src/Entity/Countries.php line 12

  1. <?php
  2. declare(strict_types=1);
  3. namespace App\Entity;
  4. use App\Repository\CountriesRepository;
  5. use App\Utils\Traits\EntityId_TimestampTrait;
  6. use Doctrine\ORM\Mapping as ORM;
  7. #[ORM\Entity(repositoryClassCountriesRepository::class)]
  8. class Countries
  9. {
  10.     use EntityId_TimestampTrait;
  11.     #[ORM\Column(length5)]
  12.     private ?string $code null;
  13.     #[ORM\Column(length255nullabletrue)]
  14.     private ?string $fr null;
  15.     #[ORM\Column(length255nullabletrue)]
  16.     private ?string $en null;
  17.     #[ORM\Column(length255nullabletrue)]
  18.     private ?string $callcode null;
  19.     #[ORM\Column(length255nullabletrue)]
  20.     private ?string $flag null;
  21.     #[ORM\Column(length255nullabletrue)]
  22.     private ?string $currency null;
  23.     public function __toString()
  24.     {
  25.         return $this->en;
  26.     }
  27.     public function getCode(): ?string
  28.     {
  29.         return $this->code;
  30.     }
  31.     public function setCode(string $code): self
  32.     {
  33.         $this->code $code;
  34.         return $this;
  35.     }
  36.     public function getFr(): ?string
  37.     {
  38.         return $this->fr;
  39.     }
  40.     public function setFr(?string $fr): self
  41.     {
  42.         $this->fr $fr;
  43.         return $this;
  44.     }
  45.     public function getEn(): ?string
  46.     {
  47.         return $this->en;
  48.     }
  49.     public function setEn(?string $en): self
  50.     {
  51.         $this->en $en;
  52.         return $this;
  53.     }
  54.     public function getCallcode(): ?string
  55.     {
  56.         return $this->callcode;
  57.     }
  58.     public function setCallcode(?string $callcode): self
  59.     {
  60.         $this->callcode $callcode;
  61.         return $this;
  62.     }
  63.     public function getFlag(): ?string
  64.     {
  65.         return $this->flag;
  66.     }
  67.     public function setFlag(?string $flag): self
  68.     {
  69.         $this->flag $flag;
  70.         return $this;
  71.     }
  72.     public function getCurrency(): ?string
  73.     {
  74.         return $this->currency;
  75.     }
  76.     public function setCurrency(?string $currency): self
  77.     {
  78.         $this->currency $currency;
  79.         return $this;
  80.     }
  81. }