From 192c3e246e82e2fb99425fd53fbfc1f9c4251f5d Mon Sep 17 00:00:00 2001 From: Landon Fackrell Date: Mon, 14 Oct 2024 14:50:32 -0600 Subject: [PATCH] Add new international fields --- src/International_Street/Components.php | 44 ++++++++++++++++++++++++- 1 file changed, 43 insertions(+), 1 deletion(-) diff --git a/src/International_Street/Components.php b/src/International_Street/Components.php index 2b0143a..cf735de 100644 --- a/src/International_Street/Components.php +++ b/src/International_Street/Components.php @@ -53,7 +53,14 @@ class Components { $levelNumber, $postBox, $postBoxType, - $postBoxNumber; + $postBoxNumber, + $additionalContent, + $deliveryInstallation, + $deliveryInstallationType, + $deliveryInstallationQualifierName, + $route, + $routeNumber, + $routeType; //endregion @@ -106,12 +113,47 @@ public function __construct($obj = null) { $this->postBox = ArrayUtil::setField($obj,'post_box'); $this->postBoxType = ArrayUtil::setField($obj,'post_box_type'); $this->postBoxNumber = ArrayUtil::setField($obj,'post_box_number'); + $this->additionalContent = ArrayUtil::setField($obj,'additional_content'); + $this->deliveryInstallation = ArrayUtil::setField($obj,'delivery_installation'); + $this->deliveryInstallationType = ArrayUtil::setField($obj,'delivery_installation_type'); + $this->deliveryInstallationQualifierName = ArrayUtil::setField($obj,'delivery_installation_qualifier_name'); + $this->route = ArrayUtil::setField($obj,'route'); + $this->routeNumber = ArrayUtil::setField($obj,'route_number'); + $this->routeType = ArrayUtil::setField($obj,'route_type'); } //endregion //region [ Getters ] + public function getAdditionalContent() { + return $this->additionalContent; + } + + public function getDeliveryInstallation() { + return $this->deliveryInstallation; + } + + public function getDeliveryInstallationType() { + return $this->deliveryInstallationType; + } + + public function getDeliveryInstallationQualifierName() { + return $this->deliveryInstallationQualifierName; + } + + public function getRoute() { + return $this->route; + } + + public function getRouteNumber() { + return $this->routeNumber; + } + + public function getRouteType() { + return $this->routeType; + } + public function getCountryIso3() { return $this->countryIso3; }