Add location type/docblock

This commit is contained in:
Dennis Eichhorn 2017-05-10 21:16:47 +02:00
parent 435447ece9
commit d687f02951

View File

@ -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
*