From 734c71cf37f3cd64abd8a703b69a7b59a812f1ea Mon Sep 17 00:00:00 2001 From: Florin Rusu Date: Tue, 4 Jul 2023 13:00:34 +0200 Subject: [PATCH] [DEV-41391] Updated SQSCLIENT (#9) --- Client/Aws/SqsClient.php | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) diff --git a/Client/Aws/SqsClient.php b/Client/Aws/SqsClient.php index 50c1622..2dd9cc7 100644 --- a/Client/Aws/SqsClient.php +++ b/Client/Aws/SqsClient.php @@ -293,6 +293,35 @@ public function deleteMessageBatch(array $args = []): Result return parent::deleteMessageBatch($args); } + /** + * @param array $args + * @param int $timeout + * @return void + */ + public function changeMessageVisibility(array $args, int $timeout): void + { + foreach ($args[self::ENTRIES] as $receipt) { + /** @noinspection PhpUndefinedMethodInspection */ + parent::changeMessageVisibility([ + 'ReceiptHandle' => $receipt[self::RECEIPT_HANDLE], + 'VisibilityTimeout' => $timeout, + ]); + } + } + + /** + * @param array $args + * @param int $timeout + * @return void + */ + public function changeMessageVisibilityBatch(array $args): void + { + /** @noinspection PhpUndefinedMethodInspection */ + parent::changeMessageVisibilityBatch([ + self::ENTRIES => $args + ]); + } + /** * @param array $args *