<?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* Country
* @ORM\Table(name="country")
* @ORM\Entity(repositoryClass="App\Repository\CountryRepository")
*/
class Country {
/**
* @var integer
* @ORM\Column(name="co_id", type="integer")
* @ORM\Id
* @ORM\GeneratedValue(strategy="IDENTITY")
*/
private $coId;
/**
* @var string
* @ORM\Column(name="co_name", type="string", length=50, nullable=false, options={"comment"="Nombre del pais"})
*/
private $coName;
/**
* @var string
* @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"})
*/
private $coVal;
/**
* @var string
* @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"})
*/
private $coThreeVal;
/**
* @var string
* @ORM\Column(name="co_phone_prefix", type="string", length=5, nullable=true, options={"comment"="Indicativo telefónico para realizar llamadas a ese país"})
*/
private $coPhonePrefix;
/**
* @var string
* @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"})
*/
private $coDianCodeLc;
/**
* @var string
* @ORM\Column(name="co_name_es", type="string", length=50, nullable=false, options={"comment"="Nombre del pais en español"})
*/
private $coNameEs;
/**
* @return type
*/
public function getCoId() {
return $this->coId;
}
/**
* @return type
*/
public function getCoName() {
return $this->coName;
}
/**
* @param type $coId
*/
public function setCoId($coId) {
$this->coId = $coId;
}
/**
* @param type $coName
*/
public function setCoName($coName) {
$this->coName = $coName;
}
/**
* @return type
*/
public function getCoVal() {
return $this->coVal;
}
/**
* @param type $coVal
*/
public function setCoVal($coVal) {
$this->coVal = $coVal;
}
/**
* @return type
*/
public function getCoThreeVal() {
return $this->coThreeVal;
}
/**
* @param type $coThreeVal
*/
public function setCoThreeVal($coThreeVal) {
$this->coThreeVal = $coThreeVal;
}
/**
* @return type
*/
public function getCoPhonePrefix() {
return $this->coPhonePrefix;
}
/**
* @param type $coPhonePrefix
*/
public function setCoPhonePrefix($coPhonePrefix) {
$this->coPhonePrefix = $coPhonePrefix;
}
/**
* @return type
*/
public function getCoDianCodeLc() {
return $this->coDianCodeLc;
}
/**
* @param type $coDianCodeLc
*/
public function setCoDianCodeLc($coDianCodeLc) {
$this->coDianCodeLc = $coDianCodeLc;
}
/**
* @return type
*/
public function getCoNameEs() {
return $this->coNameEs;
}
/**
* @param type $coNameEs
*/
public function setCoNameEs($coNameEs) {
$this->coNameEs = $coNameEs;
}
/**
* @return type
*/
public function __toString() {
return $this->coName;
}
/**
* Función para pasar a de tipo objeto-entidad a json
*/
public function showEverything() {
return get_object_vars($this);
}
}