2020-07-14 13:47:26 +03:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* Class CustomerAddress
|
|
|
|
*/
|
|
|
|
class CustomerAddress extends BaseModel
|
|
|
|
{
|
|
|
|
/**@var string $index */
|
|
|
|
protected $index;
|
|
|
|
|
|
|
|
/**@var string $country */
|
|
|
|
protected $country;
|
|
|
|
|
|
|
|
/**@var string $region */
|
|
|
|
protected $region;
|
|
|
|
|
|
|
|
/**@var string $city */
|
|
|
|
protected $city;
|
|
|
|
|
|
|
|
/**@var string $street */
|
|
|
|
protected $street;
|
|
|
|
|
|
|
|
/**@var string $building */
|
|
|
|
protected $building;
|
|
|
|
|
|
|
|
/**@var string $house */
|
|
|
|
protected $house;
|
|
|
|
|
|
|
|
/**@var string $block */
|
|
|
|
protected $block;
|
|
|
|
|
|
|
|
/**@var string $flat */
|
|
|
|
protected $flat;
|
|
|
|
|
|
|
|
/**@var string $floor */
|
|
|
|
protected $floor;
|
|
|
|
|
|
|
|
/**@var string $intercomCode */
|
|
|
|
protected $intercomCode;
|
|
|
|
|
|
|
|
/**@var string $metro */
|
|
|
|
protected $metro;
|
|
|
|
|
|
|
|
/**@var string $notes */
|
|
|
|
protected $notes;
|
|
|
|
|
|
|
|
/**@var string $text */
|
|
|
|
protected $text;
|
2021-03-23 14:36:48 +03:00
|
|
|
|
2020-07-14 13:47:26 +03:00
|
|
|
/**
|
|
|
|
* @param string $index
|
|
|
|
* @return $this
|
|
|
|
*/
|
2021-03-23 14:36:48 +03:00
|
|
|
public function setIndex(string $index): CustomerAddress
|
2020-07-14 13:47:26 +03:00
|
|
|
{
|
|
|
|
$this->index = $index;
|
|
|
|
|
|
|
|
return $this;
|
|
|
|
}
|
2021-03-23 14:36:48 +03:00
|
|
|
|
2020-07-14 13:47:26 +03:00
|
|
|
/**
|
|
|
|
* @param string $country
|
|
|
|
* @return $this
|
|
|
|
*/
|
2021-03-23 14:36:48 +03:00
|
|
|
public function setCountry(string $country): CustomerAddress
|
2020-07-14 13:47:26 +03:00
|
|
|
{
|
|
|
|
$this->country = $country;
|
|
|
|
|
|
|
|
return $this;
|
|
|
|
}
|
2021-03-23 14:36:48 +03:00
|
|
|
|
2020-07-14 13:47:26 +03:00
|
|
|
/**
|
|
|
|
* @param string $region
|
|
|
|
* @return $this
|
|
|
|
*/
|
2021-03-23 14:36:48 +03:00
|
|
|
public function setRegion(string $region): CustomerAddress
|
2020-07-14 13:47:26 +03:00
|
|
|
{
|
|
|
|
$this->region = $region;
|
|
|
|
|
|
|
|
return $this;
|
|
|
|
}
|
2021-03-23 14:36:48 +03:00
|
|
|
|
2020-07-14 13:47:26 +03:00
|
|
|
/**
|
|
|
|
* @param string $city
|
|
|
|
* @return $this
|
|
|
|
*/
|
2021-03-23 14:36:48 +03:00
|
|
|
public function setCity(string $city): CustomerAddress
|
2020-07-14 13:47:26 +03:00
|
|
|
{
|
|
|
|
$this->city = $city;
|
|
|
|
|
|
|
|
return $this;
|
|
|
|
}
|
2021-03-23 14:36:48 +03:00
|
|
|
|
2020-07-14 13:47:26 +03:00
|
|
|
/**
|
|
|
|
* @param string $street
|
|
|
|
* @return $this
|
|
|
|
*/
|
2021-03-23 14:36:48 +03:00
|
|
|
public function setStreet(string $street): CustomerAddress
|
2020-07-14 13:47:26 +03:00
|
|
|
{
|
|
|
|
$this->street = $street;
|
|
|
|
|
|
|
|
return $this;
|
|
|
|
}
|
2021-03-23 14:36:48 +03:00
|
|
|
|
2020-07-14 13:47:26 +03:00
|
|
|
/**
|
|
|
|
* @param string $building
|
|
|
|
* @return $this
|
|
|
|
*/
|
2021-03-23 14:36:48 +03:00
|
|
|
public function setBuilding(string $building): CustomerAddress
|
2020-07-14 13:47:26 +03:00
|
|
|
{
|
|
|
|
$this->building = $building;
|
|
|
|
|
|
|
|
return $this;
|
|
|
|
}
|
2021-03-23 14:36:48 +03:00
|
|
|
|
2020-07-14 13:47:26 +03:00
|
|
|
/**
|
|
|
|
* @param string $house
|
|
|
|
* @return $this
|
|
|
|
*/
|
2021-03-23 14:36:48 +03:00
|
|
|
public function setHouse(string $house): CustomerAddress
|
2020-07-14 13:47:26 +03:00
|
|
|
{
|
|
|
|
$this->house = $house;
|
|
|
|
|
|
|
|
return $this;
|
|
|
|
}
|
2021-03-23 14:36:48 +03:00
|
|
|
|
2020-07-14 13:47:26 +03:00
|
|
|
/**
|
|
|
|
* @param string $block
|
|
|
|
* @return $this
|
|
|
|
*/
|
2021-03-23 14:36:48 +03:00
|
|
|
public function setBlock(string $block): CustomerAddress
|
2020-07-14 13:47:26 +03:00
|
|
|
{
|
|
|
|
$this->block = $block;
|
|
|
|
|
|
|
|
return $this;
|
|
|
|
}
|
2021-03-23 14:36:48 +03:00
|
|
|
|
2020-07-14 13:47:26 +03:00
|
|
|
/**
|
|
|
|
* @param string $flat
|
|
|
|
* @return $this
|
|
|
|
*/
|
2021-03-23 14:36:48 +03:00
|
|
|
public function setFlat(string $flat): CustomerAddress
|
2020-07-14 13:47:26 +03:00
|
|
|
{
|
|
|
|
$this->flat = $flat;
|
|
|
|
|
|
|
|
return $this;
|
|
|
|
}
|
2021-03-23 14:36:48 +03:00
|
|
|
|
2020-07-14 13:47:26 +03:00
|
|
|
/**
|
|
|
|
* @param string $floor
|
|
|
|
* @return $this
|
|
|
|
*/
|
2021-03-23 14:36:48 +03:00
|
|
|
public function setFloor(string $floor): CustomerAddress
|
2020-07-14 13:47:26 +03:00
|
|
|
{
|
|
|
|
$this->floor = $floor;
|
|
|
|
|
|
|
|
return $this;
|
|
|
|
}
|
2021-03-23 14:36:48 +03:00
|
|
|
|
2020-07-14 13:47:26 +03:00
|
|
|
/**
|
|
|
|
* @param string $intercomCode
|
|
|
|
* @return $this
|
|
|
|
*/
|
2021-03-23 14:36:48 +03:00
|
|
|
public function setIntercomCode(string $intercomCode): CustomerAddress
|
2020-07-14 13:47:26 +03:00
|
|
|
{
|
|
|
|
$this->intercomCode = $intercomCode;
|
|
|
|
|
|
|
|
return $this;
|
|
|
|
}
|
2021-03-23 14:36:48 +03:00
|
|
|
|
2020-07-14 13:47:26 +03:00
|
|
|
/**
|
|
|
|
* @param string $metro
|
|
|
|
* @return $this
|
|
|
|
*/
|
2021-03-23 14:36:48 +03:00
|
|
|
public function setMetro(string $metro): CustomerAddress
|
2020-07-14 13:47:26 +03:00
|
|
|
{
|
|
|
|
$this->metro = $metro;
|
|
|
|
|
|
|
|
return $this;
|
|
|
|
}
|
2021-03-23 14:36:48 +03:00
|
|
|
|
2020-07-14 13:47:26 +03:00
|
|
|
/**
|
|
|
|
* @param string $notes
|
|
|
|
* @return $this
|
|
|
|
*/
|
2021-03-23 14:36:48 +03:00
|
|
|
public function setNotes(string $notes): CustomerAddress
|
2020-07-14 13:47:26 +03:00
|
|
|
{
|
|
|
|
$this->notes = $notes;
|
|
|
|
|
|
|
|
return $this;
|
|
|
|
}
|
2021-03-23 14:36:48 +03:00
|
|
|
|
2020-07-14 13:47:26 +03:00
|
|
|
/**
|
|
|
|
* @param string $text
|
|
|
|
* @return $this
|
|
|
|
*/
|
2021-03-23 14:36:48 +03:00
|
|
|
public function setText(string $text): CustomerAddress
|
2020-07-14 13:47:26 +03:00
|
|
|
{
|
|
|
|
$this->text = $text;
|
|
|
|
|
|
|
|
return $this;
|
|
|
|
}
|
|
|
|
}
|