Skip to content

Commit

Permalink
Update dependencies (core-library v3.0.0)
Browse files Browse the repository at this point in the history
  • Loading branch information
webeweb committed Aug 7, 2018
1 parent c5b2c40 commit bc93bce
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 25 deletions.
26 changes: 13 additions & 13 deletions Request/SMSModeCreateSubaccountRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

use DateTime;
use WBW\Library\Core\Exception\Pointer\NullPointerException;
use WBW\Library\Core\Utility\Argument\ArrayUtility;
use WBW\Library\Core\Helper\Argument\ArrayHelper;
use WBW\Library\SMSMode\API\SMSModeRequestInterface;
use WBW\Library\SMSMode\Response\SMSModeCreateSubaccountResponse;

Expand Down Expand Up @@ -450,19 +450,19 @@ public function toArray() {
$output["newPass"] = $this->password;

// Check and add the optional attributes.
ArrayUtility::set($output, "reference", $this->reference, [null]);
ArrayUtility::set($output, "nom", $this->lastname, [null]);
ArrayUtility::set($output, "prenom", $this->firstname, [null]);
ArrayUtility::set($output, "societe", $this->company, [null]);
ArrayUtility::set($output, "adresse", $this->address, [null]);
ArrayUtility::set($output, "ville", $this->city, [null]);
ArrayUtility::set($output, "codePostal", $this->postalCode, [null]);
ArrayUtility::set($output, "mobile", $this->mobilePhone, [null]);
ArrayUtility::set($output, "telephone", $this->phone, [null]);
ArrayUtility::set($output, "fax", $this->fax, [null]);
ArrayUtility::set($output, "email", $this->email, [null]);
ArrayHelper::set($output, "reference", $this->reference, [null]);
ArrayHelper::set($output, "nom", $this->lastname, [null]);
ArrayHelper::set($output, "prenom", $this->firstname, [null]);
ArrayHelper::set($output, "societe", $this->company, [null]);
ArrayHelper::set($output, "adresse", $this->address, [null]);
ArrayHelper::set($output, "ville", $this->city, [null]);
ArrayHelper::set($output, "codePostal", $this->postalCode, [null]);
ArrayHelper::set($output, "mobile", $this->mobilePhone, [null]);
ArrayHelper::set($output, "telephone", $this->phone, [null]);
ArrayHelper::set($output, "fax", $this->fax, [null]);
ArrayHelper::set($output, "email", $this->email, [null]);
if (null !== $this->birthdate) {
ArrayUtility::set($output, "date", $this->birthdate->format(self::DATE_FORMAT), [null]);
ArrayHelper::set($output, "date", $this->birthdate->format(self::DATE_FORMAT), [null]);
}

// Return the output.
Expand Down
4 changes: 2 additions & 2 deletions Request/SMSModeCreditTransferRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
namespace WBW\Library\SMSMode\Request;

use WBW\Library\Core\Exception\Pointer\NullPointerException;
use WBW\Library\Core\Utility\Argument\ArrayUtility;
use WBW\Library\Core\Helper\Argument\ArrayHelper;
use WBW\Library\SMSMode\API\SMSModeRequestInterface;
use WBW\Library\SMSMode\Response\SMSModeCreditTransferResponse;

Expand Down Expand Up @@ -152,7 +152,7 @@ public function toArray() {
$output["creditAmount"] = $this->credit;

// Check and add the optional attributes.
ArrayUtility::set($output, "reference", $this->reference, [null]);
ArrayHelper::set($output, "reference", $this->reference, [null]);

// Return the output.
return $output;
Expand Down
18 changes: 9 additions & 9 deletions Request/SMSModeSendSMSRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
use DateTime;
use WBW\Library\Core\Exception\Argument\IllegalArgumentException;
use WBW\Library\Core\Exception\Pointer\NullPointerException;
use WBW\Library\Core\Utility\Argument\ArrayUtility;
use WBW\Library\Core\Helper\Argument\ArrayHelper;
use WBW\Library\SMSMode\API\SMSModeMessageInterface;
use WBW\Library\SMSMode\API\SMSModeRequestInterface;
use WBW\Library\SMSMode\Exception\SMSModeInvalidNumberException;
Expand Down Expand Up @@ -417,17 +417,17 @@ public function toArray() {
}

// Check and add the optional attributes.
ArrayUtility::set($output, "classe_msg", $this->messageClass, [null]);
ArrayHelper::set($output, "classe_msg", $this->messageClass, [null]);
if (null !== $this->sendDate) {
$output["date_envoi"] = $this->sendDate->format(self::DATETIME_FORMAT);
}
ArrayUtility::set($output, "refClient", $this->customerReference, [null]);
ArrayUtility::set($output, "emetteur", $this->sender, [null]);
ArrayUtility::set($output, "nbr_msg", $this->maxMessageNumber, [null]);
ArrayUtility::set($output, "notification_url", $this->notificationURL, [null]);
ArrayUtility::set($output, "notification_url", $this->notificationURL, [null]);
ArrayUtility::set($output, "notification_url_reponse", $this->responseNotificationURL, [null]);
ArrayUtility::set($output, "stop", $this->stop, [null]);
ArrayHelper::set($output, "refClient", $this->customerReference, [null]);
ArrayHelper::set($output, "emetteur", $this->sender, [null]);
ArrayHelper::set($output, "nbr_msg", $this->maxMessageNumber, [null]);
ArrayHelper::set($output, "notification_url", $this->notificationURL, [null]);
ArrayHelper::set($output, "notification_url", $this->notificationURL, [null]);
ArrayHelper::set($output, "notification_url_reponse", $this->responseNotificationURL, [null]);
ArrayHelper::set($output, "stop", $this->stop, [null]);

// Return the output.
return $output;
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
],
"require": {
"php": "^5.6|^7.0",
"webeweb/core-library": "^2.0",
"webeweb/core-library": "^3.0",
"webeweb/curl-library": "^1.0"
},
"require-dev": {
Expand Down

0 comments on commit bc93bce

Please sign in to comment.