1 | <?php |
||
8 | class SqsAdapter implements Adapter |
||
9 | { |
||
10 | /** @var \Aws\Sqs\SqsClient */ |
||
11 | protected $client; |
||
12 | |||
13 | /** @var string */ |
||
14 | protected $url; |
||
15 | |||
16 | public function __construct(SqsClient $client, $url) |
||
21 | |||
22 | /** |
||
23 | * {@inheritdoc} |
||
24 | */ |
||
25 | public function flush() |
||
34 | |||
35 | /** |
||
36 | * {@inheritdoc} |
||
37 | */ |
||
38 | public function send(string $payload) |
||
45 | |||
46 | /** |
||
47 | * {@inheritdoc} |
||
48 | */ |
||
49 | public function receive() |
||
64 | |||
65 | /** |
||
66 | * {@inheritdoc} |
||
67 | */ |
||
68 | public function remove($job) |
||
76 | } |
||
77 |