return new self($configuration,
new SqsClient($clientConfiguration, null,
$client,
$logger),
$queueUrl);
} public function get(): ?array
{ if ($this->configuration
['auto_setup'
]) { $this->
setup();
} foreach ($this->
getNextMessages() as $message) { return $message;
} return null;
} /**
* @return \Generator<int, array>
*/
private function getNextMessages(): \Generator
{