@@ -2,7 +2,7 @@ discard block |
||
| 2 | 2 | /** |
| 3 | 3 | * Composer autoload |
| 4 | 4 | */ |
| 5 | -require_once __DIR__ . '/../vendor/autoload.php'; |
|
| 5 | +require_once __DIR__.'/../vendor/autoload.php'; |
|
| 6 | 6 | /** |
| 7 | 7 | * Used classes |
| 8 | 8 | */ |
@@ -38,10 +38,10 @@ discard block |
||
| 38 | 38 | * Debug informations provided by the utility methods |
| 39 | 39 | */ |
| 40 | 40 | if (true) { |
| 41 | - echo 'XML Request: ' . $track->getLastRequest() . "\r\n"; |
|
| 42 | - echo 'Headers Request: ' . $track->getLastRequestHeaders() . "\r\n"; |
|
| 43 | - echo 'XML Response: ' . $track->getLastResponse() . "\r\n"; |
|
| 44 | - echo 'Headers Response: ' . $track->getLastResponseHeaders() . "\r\n"; |
|
| 41 | + echo 'XML Request: '.$track->getLastRequest()."\r\n"; |
|
| 42 | + echo 'Headers Request: '.$track->getLastRequestHeaders()."\r\n"; |
|
| 43 | + echo 'XML Response: '.$track->getLastResponse()."\r\n"; |
|
| 44 | + echo 'Headers Response: '.$track->getLastResponseHeaders()."\r\n"; |
|
| 45 | 45 | } |
| 46 | 46 | /** |
| 47 | 47 | * Sample call for getProductInter operation/method |
@@ -51,16 +51,16 @@ discard block |
||
| 51 | 51 | * @var ColissimoTracking\StructType\SkybillInformationResult |
| 52 | 52 | */ |
| 53 | 53 | $return = $result->getReturn(); |
| 54 | - echo PHP_EOL . sprintf('ErrorCode: %s', $return->getErrorCode()); |
|
| 55 | - echo PHP_EOL . sprintf('ErrorMessage: %s', $return->getErrorMessage()); |
|
| 56 | - echo PHP_EOL . sprintf('EventCode: %s', $return->getEventCode()); |
|
| 57 | - echo PHP_EOL . sprintf('EventDate: %s', $return->getEventDate()); |
|
| 58 | - echo PHP_EOL . sprintf('EventLibelle: %s', $return->getEventLibelle()); |
|
| 59 | - echo PHP_EOL . sprintf('EventSite: %s', $return->getEventSite()); |
|
| 60 | - echo PHP_EOL . sprintf('RecipientCity: %s', $return->getRecipientCity()); |
|
| 61 | - echo PHP_EOL . sprintf('RecipientCountryCode: %s', $return->getRecipientCountryCode()); |
|
| 62 | - echo PHP_EOL . sprintf('RecipientZipCode: %s', $return->getRecipientZipCode()); |
|
| 63 | - echo PHP_EOL . sprintf('SkybillNumber: %s', $return->getSkybillNumber()) . PHP_EOL; |
|
| 54 | + echo PHP_EOL.sprintf('ErrorCode: %s', $return->getErrorCode()); |
|
| 55 | + echo PHP_EOL.sprintf('ErrorMessage: %s', $return->getErrorMessage()); |
|
| 56 | + echo PHP_EOL.sprintf('EventCode: %s', $return->getEventCode()); |
|
| 57 | + echo PHP_EOL.sprintf('EventDate: %s', $return->getEventDate()); |
|
| 58 | + echo PHP_EOL.sprintf('EventLibelle: %s', $return->getEventLibelle()); |
|
| 59 | + echo PHP_EOL.sprintf('EventSite: %s', $return->getEventSite()); |
|
| 60 | + echo PHP_EOL.sprintf('RecipientCity: %s', $return->getRecipientCity()); |
|
| 61 | + echo PHP_EOL.sprintf('RecipientCountryCode: %s', $return->getRecipientCountryCode()); |
|
| 62 | + echo PHP_EOL.sprintf('RecipientZipCode: %s', $return->getRecipientZipCode()); |
|
| 63 | + echo PHP_EOL.sprintf('SkybillNumber: %s', $return->getSkybillNumber()).PHP_EOL; |
|
| 64 | 64 | } else { |
| 65 | - echo PHP_EOL . 'An error occurred: ' . $track->getLastErrorForMethod('ColissimoTracking\ServiceType\Track::Track')->getMessage() . PHP_EOL; |
|
| 65 | + echo PHP_EOL.'An error occurred: '.$track->getLastErrorForMethod('ColissimoTracking\ServiceType\Track::Track')->getMessage().PHP_EOL; |
|
| 66 | 66 | } |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | * ); |
| 14 | 14 | * etc.... |
| 15 | 15 | */ |
| 16 | -require_once __DIR__ . '/vendor/autoload.php'; |
|
| 16 | +require_once __DIR__.'/vendor/autoload.php'; |
|
| 17 | 17 | /** |
| 18 | 18 | * Minimal options |
| 19 | 19 | */ |
@@ -118,7 +118,7 @@ discard block |
||
| 118 | 118 | } |
| 119 | 119 | /** |
| 120 | 120 | * Get errorCode value |
| 121 | - * @return int|null |
|
| 121 | + * @return integer |
|
| 122 | 122 | */ |
| 123 | 123 | public function getErrorCode() |
| 124 | 124 | { |
@@ -140,7 +140,7 @@ discard block |
||
| 140 | 140 | } |
| 141 | 141 | /** |
| 142 | 142 | * Get errorMessage value |
| 143 | - * @return string|null |
|
| 143 | + * @return string |
|
| 144 | 144 | */ |
| 145 | 145 | public function getErrorMessage() |
| 146 | 146 | { |
@@ -162,7 +162,7 @@ discard block |
||
| 162 | 162 | } |
| 163 | 163 | /** |
| 164 | 164 | * Get eventCode value |
| 165 | - * @return string|null |
|
| 165 | + * @return string |
|
| 166 | 166 | */ |
| 167 | 167 | public function getEventCode() |
| 168 | 168 | { |
@@ -184,7 +184,7 @@ discard block |
||
| 184 | 184 | } |
| 185 | 185 | /** |
| 186 | 186 | * Get eventDate value |
| 187 | - * @return string|null |
|
| 187 | + * @return string |
|
| 188 | 188 | */ |
| 189 | 189 | public function getEventDate() |
| 190 | 190 | { |
@@ -206,7 +206,7 @@ discard block |
||
| 206 | 206 | } |
| 207 | 207 | /** |
| 208 | 208 | * Get eventLibelle value |
| 209 | - * @return string|null |
|
| 209 | + * @return string |
|
| 210 | 210 | */ |
| 211 | 211 | public function getEventLibelle() |
| 212 | 212 | { |
@@ -228,7 +228,7 @@ discard block |
||
| 228 | 228 | } |
| 229 | 229 | /** |
| 230 | 230 | * Get eventSite value |
| 231 | - * @return string|null |
|
| 231 | + * @return string |
|
| 232 | 232 | */ |
| 233 | 233 | public function getEventSite() |
| 234 | 234 | { |
@@ -250,7 +250,7 @@ discard block |
||
| 250 | 250 | } |
| 251 | 251 | /** |
| 252 | 252 | * Get recipientCity value |
| 253 | - * @return string|null |
|
| 253 | + * @return string |
|
| 254 | 254 | */ |
| 255 | 255 | public function getRecipientCity() |
| 256 | 256 | { |
@@ -272,7 +272,7 @@ discard block |
||
| 272 | 272 | } |
| 273 | 273 | /** |
| 274 | 274 | * Get recipientCountryCode value |
| 275 | - * @return string|null |
|
| 275 | + * @return string |
|
| 276 | 276 | */ |
| 277 | 277 | public function getRecipientCountryCode() |
| 278 | 278 | { |
@@ -294,7 +294,7 @@ discard block |
||
| 294 | 294 | } |
| 295 | 295 | /** |
| 296 | 296 | * Get recipientZipCode value |
| 297 | - * @return string|null |
|
| 297 | + * @return string |
|
| 298 | 298 | */ |
| 299 | 299 | public function getRecipientZipCode() |
| 300 | 300 | { |
@@ -316,7 +316,7 @@ discard block |
||
| 316 | 316 | } |
| 317 | 317 | /** |
| 318 | 318 | * Get skybillNumber value |
| 319 | - * @return string|null |
|
| 319 | + * @return string |
|
| 320 | 320 | */ |
| 321 | 321 | public function getSkybillNumber() |
| 322 | 322 | { |