diff --git a/Datatypes/Location.php b/Datatypes/Location.php index 45f9788cc..14148d1be 100644 --- a/Datatypes/Location.php +++ b/Datatypes/Location.php @@ -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 + */ + public function getId() : int + { + return $this->id; + } + + /** + * @return int + * + * @since 1.0.0 + * @author Dennis Eichhorn + */ + public function getType() : int + { + return $this->type; + } + + public function setType(int $type) /* : void */ + { + $this->type = $type; + } + /** * @return string *