diff --git a/src/Provider/AbstractProvider.php b/src/Provider/AbstractProvider.php index 22d8727..58f4b2f 100644 --- a/src/Provider/AbstractProvider.php +++ b/src/Provider/AbstractProvider.php @@ -12,7 +12,6 @@ namespace WBW\Library\SmsMode\Provider; use GuzzleHttp\Client; -use GuzzleHttp\Exception\GuzzleException; use InvalidArgumentException; use Psr\Log\LoggerInterface; use Throwable; @@ -92,7 +91,6 @@ private function buildConfiguration(): array { * @param mixed[] $postData The post data. * @return string Returns the raw response. * @throws InvalidArgumentException Throws an invalid argument exception if a parameter is missing. - * @throws GuzzleException Throws a Guzzle exception if an error occurs. * @throws ApiException Throws an API exception if an error occurs. */ protected function callApi(AbstractRequest $request, array $queryData, array $postData = []): string { diff --git a/src/Provider/ApiProvider.php b/src/Provider/ApiProvider.php index 2f832e0..b8c5b69 100644 --- a/src/Provider/ApiProvider.php +++ b/src/Provider/ApiProvider.php @@ -12,7 +12,6 @@ namespace WBW\Library\SmsMode\Provider; use GuzzleHttp\Exception\ClientException; -use GuzzleHttp\Exception\GuzzleException; use InvalidArgumentException; use WBW\Library\Provider\Exception\ApiException; use WBW\Library\SmsMode\Request\AccountBalanceRequest; @@ -61,7 +60,6 @@ class ApiProvider extends AbstractProvider { * @param AccountBalanceRequest $request The account balance request. * @return AccountBalanceResponse Returns the account balance response. * @throws InvalidArgumentException Throws an invalid argument exception if a parameter is missing. - * @throws GuzzleException Throws a Guzzle exception if an error occurs. * @throws ApiException Throws an API exception if an error occurs. */ public function accountBalance(AccountBalanceRequest $request): AccountBalanceResponse { @@ -79,7 +77,6 @@ public function accountBalance(AccountBalanceRequest $request): AccountBalanceRe * @param AddingContactRequest $request The adding contact request. * @return AddingContactResponse Returns the adding contact response. * @throws InvalidArgumentException Throws an invalid argument exception if a parameter is missing. - * @throws GuzzleException Throws a Guzzle exception if an error occurs. * @throws ApiException Throws an API exception if an error occurs. */ public function addingContact(AddingContactRequest $request): AddingContactResponse { @@ -97,7 +94,6 @@ public function addingContact(AddingContactRequest $request): AddingContactRespo * @param CheckingSmsMessageStatusRequest $request The checking SMS message status request. * @return CheckingSmsMessageStatusResponse Returns the checking SMS message status response. * @throws InvalidArgumentException Throws an invalid argument exception if a parameter is missing. - * @throws GuzzleException Throws a Guzzle exception if an error occurs. * @throws ApiException Throws an API exception if an error occurs. */ public function checkingSmsMessageStatus(CheckingSmsMessageStatusRequest $request): CheckingSmsMessageStatusResponse { @@ -115,7 +111,6 @@ public function checkingSmsMessageStatus(CheckingSmsMessageStatusRequest $reques * @param CreatingApiKeyRequest $request The creating API key request. * @return CreatingApiKeyResponse Returns the creating API key response. * @throws InvalidArgumentException Throws an invalid argument exception if a parameter is missing. - * @throws GuzzleException Throws a Guzzle exception if an error occurs. * @throws ApiException Throws an API exception if an error occurs. */ public function creatingApiKey(CreatingApiKeyRequest $request): CreatingApiKeyResponse { @@ -144,7 +139,6 @@ public function creatingApiKey(CreatingApiKeyRequest $request): CreatingApiKeyRe * @param CreatingSubAccountRequest $request The creating sub-account request. * @return CreatingSubAccountResponse Returns the creating sub-account response. * @throws InvalidArgumentException Throws an invalid argument exception if a parameter is missing. - * @throws GuzzleException Throws a Guzzle exception if an error occurs. * @throws ApiException Throws an API exception if an error occurs. */ public function creatingSubAccount(CreatingSubAccountRequest $request): CreatingSubAccountResponse { @@ -162,7 +156,6 @@ public function creatingSubAccount(CreatingSubAccountRequest $request): Creating * @param DeletingSmsRequest $request The deleting SMS request. * @return DeletingSmsResponse Returns the delivery SMS message response. * @throws InvalidArgumentException Throws an invalid argument exception if a parameter is missing. - * @throws GuzzleException Throws a Guzzle exception if an error occurs. * @throws ApiException Throws an API exception if an error occurs. */ public function deletingSms(DeletingSmsRequest $request): DeletingSmsResponse { @@ -180,7 +173,6 @@ public function deletingSms(DeletingSmsRequest $request): DeletingSmsResponse { * @param DeletingSubAccountRequest $request The deleting sub-account request. * @return DeletingSubAccountResponse Returns the delivery sub-account response. * @throws InvalidArgumentException Throws an invalid argument exception if a parameter is missing. - * @throws GuzzleException Throws a Guzzle exception if an error occurs. * @throws ApiException Throws an API exception if an error occurs. */ public function deletingSubAccount(DeletingSubAccountRequest $request): DeletingSubAccountResponse { @@ -198,7 +190,6 @@ public function deletingSubAccount(DeletingSubAccountRequest $request): Deleting * @param DeliveryReportRequest $request The delivery report request. * @return DeliveryReportResponse Returns the delivery report response. * @throws InvalidArgumentException Throws an invalid argument exception if a parameter is missing. - * @throws GuzzleException Throws a Guzzle exception if an error occurs. * @throws ApiException Throws an API exception if an error occurs. */ public function deliveryReport(DeliveryReportRequest $request): DeliveryReportResponse { @@ -216,7 +207,6 @@ public function deliveryReport(DeliveryReportRequest $request): DeliveryReportRe * @param RetrievingSmsReplyRequest $request The retrieving SMS reply request. * @return RetrievingSmsReplyResponse Returns the retrieving SMS reply response. * @throws InvalidArgumentException Throws an invalid argument exception if a parameter is missing. - * @throws GuzzleException Throws a Guzzle exception if an error occurs. * @throws ApiException Throws an API exception if an error occurs. */ public function retrievingSmsReply(RetrievingSmsReplyRequest $request): RetrievingSmsReplyResponse { @@ -234,7 +224,6 @@ public function retrievingSmsReply(RetrievingSmsReplyRequest $request): Retrievi * @param SendingSmsBatchRequest $request The sending SMS batch request. * @return SendingSmsBatchResponse Returns the sending SMS message response. * @throws InvalidArgumentException Throws an invalid argument exception if a parameter is missing. - * @throws GuzzleException Throws a Guzzle exception if an error occurs. * @throws ApiException Throws an API exception if an error occurs. */ public function sendingSmsBatch(SendingSmsBatchRequest $request): SendingSmsBatchResponse { @@ -263,7 +252,6 @@ public function sendingSmsBatch(SendingSmsBatchRequest $request): SendingSmsBatc * @param SendingSmsMessageRequest $request The sending SMS message request. * @return SendingSmsMessageResponse Returns the sending SMS message response. * @throws InvalidArgumentException Throws an invalid argument exception if a parameter is missing. - * @throws GuzzleException Throws a Guzzle exception if an error occurs. * @throws ApiException Throws an API exception if an error occurs. */ public function sendingSmsMessage(SendingSmsMessageRequest $request): SendingSmsMessageResponse { @@ -287,7 +275,6 @@ public function sendingSmsMessage(SendingSmsMessageRequest $request): SendingSms * @param SendingTextToSpeechSmsRequest $request The sending text-to-speech SMS request. * @return SendingTextToSpeechSmsResponse Returns the sending text-to-speech response. * @throws InvalidArgumentException Throws an invalid argument exception if a parameter is missing. - * @throws GuzzleException Throws a Guzzle exception if an error occurs. * @throws ApiException Throws an API exception if an error occurs. */ public function sendingTextToSpeechSms(SendingTextToSpeechSmsRequest $request): SendingTextToSpeechSmsResponse { @@ -311,7 +298,6 @@ public function sendingTextToSpeechSms(SendingTextToSpeechSmsRequest $request): * @param SendingUnicodeSmsRequest $request The sending unicode SMS request. * @return SendingUnicodeSmsResponse Returns the sending unicode response. * @throws InvalidArgumentException Throws an invalid argument exception if a parameter is missing. - * @throws GuzzleException Throws a Guzzle exception if an error occurs. * @throws ApiException Throws an API exception if an error occurs. */ public function sendingUnicodeSms(SendingUnicodeSmsRequest $request): SendingUnicodeSmsResponse { @@ -335,7 +321,6 @@ public function sendingUnicodeSms(SendingUnicodeSmsRequest $request): SendingUni * @param SentSmsMessageListRequest $request The sent SMS message list request. * @return SentSmsMessageListResponse Returns the sent SMS message list response. * @throws InvalidArgumentException Throws an invalid argument exception if a parameter is missing. - * @throws GuzzleException Throws a Guzzle exception if an error occurs. * @throws ApiException Throws an API exception if an error occurs. */ public function sentSmsMessageList(SentSmsMessageListRequest $request): SentSmsMessageListResponse { @@ -353,7 +338,6 @@ public function sentSmsMessageList(SentSmsMessageListRequest $request): SentSmsM * @param TransferringCreditsRequest $request The transferring credits request. * @return TransferringCreditsResponse Returns the transferring credits response. * @throws InvalidArgumentException Throws an invalid argument exception if a parameter is missing. - * @throws GuzzleException Throws a Guzzle exception if an error occurs. * @throws ApiException Throws an API exception if an error occurs. */ public function transferringCredits(TransferringCreditsRequest $request): TransferringCreditsResponse {