11<?php
22namespace Bpost \BpostApiClient \Bpost \Order \Box ;
33
4+ use Bpost \BpostApiClient \Bpost ;
45use Bpost \BpostApiClient \Bpost \Order \Box \National \ShopHandlingInstruction ;
56use Bpost \BpostApiClient \Bpost \Order \Box \Option \Messaging ;
67use Bpost \BpostApiClient \Bpost \Order \PugoAddress ;
@@ -252,7 +253,7 @@ public static function createFromXML(\SimpleXMLElement $xml)
252253 if (isset ($ xml ->atIntlPugo ->options )) {
253254 /** @var \SimpleXMLElement $optionData */
254255 foreach ($ xml ->atIntlPugo ->options as $ optionData ) {
255- $ optionData = $ optionData ->children (' http://schema.post.be/shm/deepintegration/v3/common ' );
256+ $ optionData = $ optionData ->children (Bpost:: NS_V3_COMMON );
256257
257258 if (in_array (
258259 $ optionData ->getName (),
@@ -288,7 +289,7 @@ public static function createFromXML(\SimpleXMLElement $xml)
288289 if (isset ($ xml ->atIntlPugo ->receiver ) && $ xml ->atIntlPugo ->receiver != '' ) {
289290 $ self ->setReceiver (
290291 Receiver::createFromXML (
291- $ xml ->atIntlPugo ->receiver ->children (' http://schema.post.be/shm/deepintegration/v3/common ' )
292+ $ xml ->atIntlPugo ->receiver ->children (Bpost:: NS_V3_COMMON )
292293 )
293294 );
294295 }
@@ -304,9 +305,7 @@ public static function createFromXML(\SimpleXMLElement $xml)
304305 }
305306 if (isset ($ xml ->atIntlPugo ->pugoAddress )) {
306307 /** @var \SimpleXMLElement $pugoAddressData */
307- $ pugoAddressData = $ xml ->atIntlPugo ->pugoAddress ->children (
308- 'http://schema.post.be/shm/deepintegration/v3/common '
309- );
308+ $ pugoAddressData = $ xml ->atIntlPugo ->pugoAddress ->children (Bpost::NS_V3_COMMON );
310309 $ self ->setPugoAddress (
311310 PugoAddress::createFromXML ($ pugoAddressData )
312311 );
0 commit comments