src/Entity/Country.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * Country
  6.  * @ORM\Table(name="country")
  7.  * @ORM\Entity(repositoryClass="App\Repository\CountryRepository")
  8.  */
  9. class Country {
  10.     /**
  11.      * @var integer
  12.      * @ORM\Column(name="co_id", type="integer")
  13.      * @ORM\Id
  14.      * @ORM\GeneratedValue(strategy="IDENTITY")
  15.      */
  16.     private $coId;
  17.     /**
  18.      * @var string
  19.      * @ORM\Column(name="co_name", type="string", length=50, nullable=false, options={"comment"="Nombre del pais"})
  20.      */
  21.     private $coName;
  22.     /**
  23.      * @var string
  24.      * @ORM\Column(name="co_value", type="string", length=2, nullable=true, unique=true, options={"comment"="Código unico de dos caracteres que identifica al país"})
  25.      */
  26.     private $coVal;
  27.     /**
  28.      * @var string
  29.      * @ORM\Column(name="co_three_value", type="string", length=3, nullable=true, unique=true, options={"comment"="Código unico de tres caracteres que identifica al país"})
  30.      */
  31.     private $coThreeVal;
  32.     /**
  33.      * @var string
  34.      * @ORM\Column(name="co_phone_prefix", type="string", length=5, nullable=true, options={"comment"="Indicativo telefónico para realizar llamadas a ese país"})
  35.      */
  36.     private $coPhonePrefix;
  37.     /**
  38.      * @var string
  39.      * @ORM\Column(name="co_dian_code_lc", type="string", length=7, nullable=true, options={"comment"="código proporcionado por la DIAN, el cual identifica a los países, solo se utilizara para level Colombia"})
  40.      */
  41.     private $coDianCodeLc;
  42.     /**
  43.      * @var string
  44.      * @ORM\Column(name="co_name_es", type="string", length=50, nullable=false, options={"comment"="Nombre del pais en español"})
  45.      */
  46.     private $coNameEs;
  47.     /**
  48.      * @return type
  49.      */
  50.     public function getCoId() {
  51.         return $this->coId;
  52.     }
  53.     /**
  54.      * @return type
  55.      */
  56.     public function getCoName() {
  57.         return $this->coName;
  58.     }
  59.     /**
  60.      * @param type $coId
  61.      */
  62.     public function setCoId($coId) {
  63.         $this->coId $coId;
  64.     }
  65.     /**
  66.      * @param type $coName
  67.      */
  68.     public function setCoName($coName) {
  69.         $this->coName $coName;
  70.     }
  71.     /**
  72.      * @return type
  73.      */
  74.     public function getCoVal() {
  75.         return $this->coVal;
  76.     }
  77.     /**
  78.      * @param type $coVal
  79.      */
  80.     public function setCoVal($coVal) {
  81.         $this->coVal $coVal;
  82.     }
  83.     /**
  84.      * @return type
  85.      */
  86.     public function getCoThreeVal() {
  87.         return $this->coThreeVal;
  88.     }
  89.     /**
  90.      * @param type $coThreeVal
  91.      */
  92.     public function setCoThreeVal($coThreeVal) {
  93.         $this->coThreeVal $coThreeVal;
  94.     }
  95.     /**
  96.      * @return type
  97.      */
  98.     public function getCoPhonePrefix() {
  99.         return $this->coPhonePrefix;
  100.     }
  101.     /**
  102.      * @param type $coPhonePrefix
  103.      */
  104.     public function setCoPhonePrefix($coPhonePrefix) {
  105.         $this->coPhonePrefix $coPhonePrefix;
  106.     }
  107.     /**
  108.      * @return type
  109.      */
  110.     public function getCoDianCodeLc() {
  111.         return $this->coDianCodeLc;
  112.     }
  113.     /**
  114.      * @param type $coDianCodeLc
  115.      */
  116.     public function setCoDianCodeLc($coDianCodeLc) {
  117.         $this->coDianCodeLc $coDianCodeLc;
  118.     }
  119.     /**
  120.      * @return type
  121.      */
  122.     public function getCoNameEs() {
  123.         return $this->coNameEs;
  124.     }
  125.     /**
  126.      * @param type $coNameEs
  127.      */
  128.     public function setCoNameEs($coNameEs) {
  129.         $this->coNameEs $coNameEs;
  130.     }
  131.     /**
  132.      * @return type
  133.      */
  134.     public function __toString() {
  135.         return $this->coName;
  136.     }
  137.     /**
  138.      * Función para pasar a de tipo objeto-entidad a json
  139.      */
  140.     public function showEverything() {
  141.         return get_object_vars($this);
  142.     }
  143. }