<?php
namespace App\Entity;
use Doctrine\ORM\Mapping as ORM;
class AddressDistrict {
/**
* @var integer
*/
private $id;
/**
* @var string
*/
private $name;
/**
* @var string
*/
private $bkz;
/**
* @var \App\Entity\AddressState
*/
private $addressState;
/**
* Get id
*
* @return integer
*/
public function getId() {
return $this->id;
}
/**
* Set name
*
* @param string $name
*
* @return AddressDistrict
*/
public function setName($name) {
$this->name = $name;
return $this;
}
/**
* Get name
*
* @return string
*/
public function getName() {
return $this->name;
}
/**
* Set bkz
*
* @param string $bkz
*
* @return AddressDistrict
*/
public function setBkz($bkz) {
$this->bkz = $bkz;
return $this;
}
/**
* Get bkz
*
* @return string
*/
public function getBkz() {
return $this->bkz;
}
/**
* Set addressState
*
* @param \App\Entity\AddressState $addressState
*
* @return AddressDistrict
*/
public function setAddressState(\App\Entity\AddressState $addressState = null) {
$this->addressState = $addressState;
return $this;
}
/**
* Get addressState
*
* @return \App\Entity\AddressState
*/
public function getAddressState() {
return $this->addressState;
}
/**
* Get country code
*
* @return string
*/
public function getCountryCode() {
if (!is_null($this->addressState)) {
return $this->addressState->getCountryCode();
}
return '';
}
/**
* Get country
*
* @return string
*/
public function getCountry() {
if (!is_null($this->addressState)) {
return $this->addressState->getCountry();
}
return '';
}
}