src/Entity/Country.php line 13

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * Country
  6.  *
  7.  * @ORM\Table(name="countries")
  8.  * @ORM\Entity(repositoryClass="App\Repository\CountryRepository")
  9.  */
  10. class Country
  11. {
  12.     /**
  13.      * @var int
  14.      *
  15.      * @ORM\Column(name="id", type="integer")
  16.      * @ORM\Id
  17.      * @ORM\GeneratedValue(strategy="AUTO")
  18.      */
  19.     private $id;
  20.     /**
  21.      * @var string
  22.      *
  23.      * @ORM\Column(name="code", type="string", length=10)
  24.      */
  25.     private $code;
  26.     /**
  27.      * @var string
  28.      *
  29.      * @ORM\Column(name="name", type="string", length=255)
  30.      */
  31.     private $country;
  32.     /**
  33.      * @ORM\Column(type="string", length=10, nullable=true)
  34.      */
  35.     private $SageCode;
  36.     /**
  37.      * Get id
  38.      *
  39.      * @return int
  40.      */
  41.     public function getId()
  42.     {
  43.         return $this->id;
  44.     }
  45.     /**
  46.      * Set iso
  47.      *
  48.      * @param string $iso
  49.      *
  50.      * @return Country
  51.      */
  52.     public function setCode($code)
  53.     {
  54.         $this->code = $code;
  55.         return $this;
  56.     }
  57.     /**
  58.      * Get iso
  59.      *
  60.      * @return string
  61.      */
  62.     public function getCode()
  63.     {
  64.         return $this->code;
  65.     }
  66.     /**
  67.      * Set country
  68.      *
  69.      * @param string $country
  70.      *
  71.      * @return Country
  72.      */
  73.     public function setCountry($country)
  74.     {
  75.         $this->country = $country;
  76.         return $this;
  77.     }
  78.     /**
  79.      * Get country
  80.      *
  81.      * @return string
  82.      */
  83.     public function getCountry()
  84.     {
  85.         return $this->country;
  86.     }
  87.     public function getSageCode(): ?string
  88.     {
  89.         return $this->SageCode;
  90.     }
  91.     public function setSageCode(?string $SageCode): self
  92.     {
  93.         $this->SageCode = $SageCode;
  94.         return $this;
  95.     }
  96. }