src/Entity/City.php line 12

Open in your IDE?
  1. <?php
  2. namespace App\Entity;
  3. use Doctrine\ORM\Mapping as ORM;
  4. /**
  5.  * City
  6.  * @ORM\Table(name="city", indexes={@ORM\Index(name="city_state_fk_1", columns={"ci_state_id"})})
  7.  * @ORM\Entity(repositoryClass="App\Repository\CityRepository")
  8.  */
  9. class City {
  10.     /**
  11.      * @var integer
  12.      * @ORM\Column(name="ci_id", type="integer")
  13.      * @ORM\Id
  14.      * @ORM\GeneratedValue(strategy="IDENTITY")
  15.      */
  16.     private $id;
  17.     /**
  18.      * @var string
  19.      * @ORM\Column(name="ci_name", type="string", length=50, nullable=false, options={"comment"="nombre de la ciudad"})
  20.      */
  21.     private $ciName;
  22.     /**
  23.      * @var \App\Entity\State
  24.      * @ORM\ManyToOne(targetEntity="App\Entity\State")
  25.      * @ORM\JoinColumns({
  26.      *   @ORM\JoinColumn(name="ci_state_id", referencedColumnName="st_id", options={"comment"="llave foránea desde state, relación de uno a muchos"})
  27.      * })
  28.      */
  29.     private $ciState;
  30.     /**
  31.      * @var boolean
  32.      * @ORM\Column(name="ci_is_manually_added", type="boolean", nullable=true, options={"comment"="campo de tipo booleano que indica si la ciudad fue agregara manualmente"}) 
  33.      */
  34.     protected $isManuallyAdded;
  35.     /**
  36.      * @var string
  37.      * @ORM\Column(name="ci_dian_code_lc", type="string", length=7, nullable=true, options={"comment"="código proporcionado por la DIAN, el cual identifica a las ciudades de Colombia, solo se utilizara para level Colombia"})
  38.      */
  39.     private $ciDianCodeLc;
  40.     /**
  41.      * @return type
  42.      */
  43.     public function getId() {
  44.         return $this->id;
  45.     }
  46.     /**
  47.      * @return type
  48.      */
  49.     public function getCiName() {
  50.         return $this->ciName;
  51.     }
  52.     /**
  53.      * @return type
  54.      */
  55.     public function getCiState() {
  56.         return $this->ciState;
  57.     }
  58.     /**
  59.      * @param type $ciId
  60.      */
  61.     public function setCiId($ciId) {
  62.         $this->id $ciId;
  63.     }
  64.     /**
  65.      * @param type $ciName
  66.      */
  67.     public function setCiName($ciName) {
  68.         $this->ciName $ciName;
  69.     }
  70.     /**
  71.      * @param \App\Entity\State $ciState
  72.      */
  73.     public function setCiState(\App\Entity\State $ciState) {
  74.         $this->ciState $ciState;
  75.     }
  76.     /**
  77.      * @return type
  78.      */
  79.     public function getIsManuallyAdded() {
  80.         return $this->isManuallyAdded;
  81.     }
  82.     /**
  83.      * @param type $isManuallyAdded
  84.      */
  85.     public function setIsManuallyAdded($isManuallyAdded) {
  86.         $this->isManuallyAdded $isManuallyAdded;
  87.     }
  88.     /**
  89.      * @return type
  90.      */
  91.     public function getCiDianCodeLc() {
  92.         return $this->ciDianCodeLc;
  93.     }
  94.     /**
  95.      * @param type $ciDianCodeLc
  96.      */
  97.     public function setCiDianCodeLc($ciDianCodeLc) {
  98.         $this->ciDianCodeLc $ciDianCodeLc;
  99.     }
  100.     /**
  101.      * @return type
  102.      */
  103.     public function __toString() {
  104.         return $this->ciName;
  105.     }
  106. }