<?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
/**
* City
* @ORM\Table(name="city", indexes={@ORM\Index(name="city_state_fk_1", columns={"ci_state_id"})})
* @ORM\Entity(repositoryClass="App\Repository\CityRepository")
*/
class City {
/**
* @var integer
* @ORM\Column(name="ci_id", type="integer")
* @ORM\Id
* @ORM\GeneratedValue(strategy="IDENTITY")
*/
private $id;
/**
* @var string
* @ORM\Column(name="ci_name", type="string", length=50, nullable=false, options={"comment"="nombre de la ciudad"})
*/
private $ciName;
/**
* @var \App\Entity\State
* @ORM\ManyToOne(targetEntity="App\Entity\State")
* @ORM\JoinColumns({
* @ORM\JoinColumn(name="ci_state_id", referencedColumnName="st_id", options={"comment"="llave foránea desde state, relación de uno a muchos"})
* })
*/
private $ciState;
/**
* @var boolean
* @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"})
*/
protected $isManuallyAdded;
/**
* @var string
* @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"})
*/
private $ciDianCodeLc;
/**
* @return type
*/
public function getId() {
return $this->id;
}
/**
* @return type
*/
public function getCiName() {
return $this->ciName;
}
/**
* @return type
*/
public function getCiState() {
return $this->ciState;
}
/**
* @param type $ciId
*/
public function setCiId($ciId) {
$this->id = $ciId;
}
/**
* @param type $ciName
*/
public function setCiName($ciName) {
$this->ciName = $ciName;
}
/**
* @param \App\Entity\State $ciState
*/
public function setCiState(\App\Entity\State $ciState) {
$this->ciState = $ciState;
}
/**
* @return type
*/
public function getIsManuallyAdded() {
return $this->isManuallyAdded;
}
/**
* @param type $isManuallyAdded
*/
public function setIsManuallyAdded($isManuallyAdded) {
$this->isManuallyAdded = $isManuallyAdded;
}
/**
* @return type
*/
public function getCiDianCodeLc() {
return $this->ciDianCodeLc;
}
/**
* @param type $ciDianCodeLc
*/
public function setCiDianCodeLc($ciDianCodeLc) {
$this->ciDianCodeLc = $ciDianCodeLc;
}
/**
* @return type
*/
public function __toString() {
return $this->ciName;
}
}