mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-01-27 08:28: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
|
||||
{
|
||||
|
||||
/**
|
||||
* Location id
|
||||
*
|
||||
* @var int
|
||||
* @since 1.0.0
|
||||
*/
|
||||
private $id = 0;
|
||||
|
||||
/**
|
||||
* Zip or postal.
|
||||
*
|
||||
|
|
@ -63,6 +71,14 @@ class Location implements \JsonSerializable, \Serializable
|
|||
*/
|
||||
private $address = '';
|
||||
|
||||
/**
|
||||
* Address type
|
||||
*
|
||||
* @var int
|
||||
* @since 1.0.0
|
||||
*/
|
||||
private $type = AddressType::HOME;
|
||||
|
||||
/**
|
||||
* 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
|
||||
*
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user