<?phpnamespace App\Entity;use Doctrine\ORM\Mapping as ORM;class AddressCity { /** * @var int */ private $id; /** * @var string */ private $zip; /** * @var string */ private $name; /** * @var string */ private $gkz; /** * @var \App\Entity\AddressDistrict */ private $addressDistrict; /** * Get id * * @return integer */ public function getId() { return $this->id; } /** * Set zip * * @param string $zip * * @return AddressCity */ public function setZip($zip) { $this->zip = $zip; return $this; } /** * Get zip * * @return string */ public function getZip() { return $this->zip; } /** * Set name * * @param string $name * * @return AddressCity */ public function setName($name) { $this->name = $name; return $this; } /** * Get name * * @return string */ public function getName() { return $this->name; } /** * Set addressDistrict * * @param \App\Entity\AddressDistrict $addressDistrict * * @return AddressCity */ public function setAddressDistrict(\App\Entity\AddressDistrict $addressDistrict = null) { $this->addressDistrict = $addressDistrict; return $this; } /** * Get addressDistrict * * @return \App\Entity\AddressDistrict */ public function getAddressDistrict() { return $this->addressDistrict; } /** * Set gkz. * * @param string $gkz * * @return AddressCity */ public function setGkz($gkz) { $this->gkz = $gkz; return $this; } /** * Get gkz. * * @return string */ public function getGkz() { return $this->gkz; } /** * Get city full * * @return string */ public function getCityFull() { return $this->zip . ' ' . $this->name; } /** * Get district id * * @return string */ public function getDistrictID() { if (!is_null($this->addressDistrict)) { return $this->addressDistrict->getId(); } return ''; } /** * Get district name * * @return string */ public function getDistrictName() { if (!is_null($this->addressDistrict)) { return $this->addressDistrict->getName(); } return ''; } /** * Get country code * * @return string */ public function getCountryCode() { if (!is_null($this->addressDistrict)) { return $this->addressDistrict->getCountryCode(); } return ''; } /** * Get country * * @return string */ public function getCountry() { if (!is_null($this->addressDistrict)) { return $this->addressDistrict->getCountry(); } return ''; } /** * Get full name * * @return string */ public function getFullName() { return $this->zip . ' ' . $this->name; }}