mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-02-14 15:38:40 +00:00
Add location type/docblock
This commit is contained in:
parent
435447ece9
commit
d687f02951
|
|
@ -31,6 +31,14 @@ namespace phpOMS\Datatypes;
|
||||||
class Location implements \JsonSerializable, \Serializable
|
class Location implements \JsonSerializable, \Serializable
|
||||||
{
|
{
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Location id
|
||||||
|
*
|
||||||
|
* @var int
|
||||||
|
* @since 1.0.0
|
||||||
|
*/
|
||||||
|
private $id = 0;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Zip or postal.
|
* Zip or postal.
|
||||||
*
|
*
|
||||||
|
|
@ -63,6 +71,14 @@ class Location implements \JsonSerializable, \Serializable
|
||||||
*/
|
*/
|
||||||
private $address = '';
|
private $address = '';
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Address type
|
||||||
|
*
|
||||||
|
* @var int
|
||||||
|
* @since 1.0.0
|
||||||
|
*/
|
||||||
|
private $type = AddressType::HOME;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* State.
|
* State.
|
||||||
*
|
*
|
||||||
|
|
@ -89,6 +105,33 @@ class Location implements \JsonSerializable, \Serializable
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return int
|
||||||
|
*
|
||||||
|
* @since 1.0.0
|
||||||
|
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
||||||
|
*/
|
||||||
|
public function getId() : int
|
||||||
|
{
|
||||||
|
return $this->id;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return int
|
||||||
|
*
|
||||||
|
* @since 1.0.0
|
||||||
|
* @author Dennis Eichhorn <d.eichhorn@oms.com>
|
||||||
|
*/
|
||||||
|
public function getType() : int
|
||||||
|
{
|
||||||
|
return $this->type;
|
||||||
|
}
|
||||||
|
|
||||||
|
public function setType(int $type) /* : void */
|
||||||
|
{
|
||||||
|
$this->type = $type;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @return string
|
* @return string
|
||||||
*
|
*
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user