1 | <?php |
||
11 | final class Consume |
||
12 | { |
||
13 | private $queue; |
||
14 | private $consumerTag; |
||
15 | private $local = true; |
||
16 | private $ack = true; |
||
17 | private $exclusive = false; |
||
18 | private $wait = true; |
||
19 | private $arguments; |
||
20 | |||
21 | 7 | public function __construct(string $queue) |
|
26 | |||
27 | 2 | public function withConsumerTag(string $tag): self |
|
34 | |||
35 | /** |
||
36 | * Let the server define the consumer tag |
||
37 | */ |
||
38 | 1 | public function withAutoGeneratedConsumerTag(): self |
|
45 | |||
46 | /** |
||
47 | * Means the server will not deliver messages to the consumer |
||
48 | */ |
||
49 | 2 | public function noLocal(): self |
|
56 | |||
57 | 1 | public function local(): self |
|
64 | |||
65 | 1 | public function manualAcknowledge(): self |
|
72 | |||
73 | 2 | public function autoAcknowledge(): self |
|
80 | |||
81 | 2 | public function exclusive(): self |
|
88 | |||
89 | 1 | public function notExclusive(): self |
|
96 | |||
97 | 2 | public function dontWait(): self |
|
104 | |||
105 | 1 | public function wait(): self |
|
112 | |||
113 | public function withArgument(string $key, $value): self |
||
120 | |||
121 | 2 | public function queue(): string |
|
125 | |||
126 | 3 | public function shouldAutoGenerateConsumerTag(): bool |
|
130 | |||
131 | 1 | public function consumerTag(): string |
|
132 | { |
||
133 | 1 | return $this->consumerTag; |
|
134 | } |
||
135 | |||
136 | 3 | public function isLocal(): bool |
|
140 | |||
141 | 3 | public function shouldAutoAcknowledge(): bool |
|
145 | |||
146 | 3 | public function isExclusive(): bool |
|
150 | |||
151 | 3 | public function shouldWait(): bool |
|
155 | |||
156 | /** |
||
157 | * @return MapInterface<string, mixed> |
||
|
|||
158 | */ |
||
159 | 1 | public function arguments(): MapInterface |
|
163 | } |
||
164 |
This check marks PHPDoc comments that could not be parsed by our parser. To see which comment annotations we can parse, please refer to our documentation on supported doc-types.