Skip to content

Commit

Permalink
[DEV-41391] Updated SQSCLIENT (#9)
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorinCR authored Jul 4, 2023
1 parent abf9f0c commit 734c71c
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions Client/Aws/SqsClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
*
Expand Down

0 comments on commit 734c71c

Please sign in to comment.