| Total Complexity | 5 |
| Total Lines | 53 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php declare(strict_types = 1); |
||
| 5 | final class QueueBind |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * @var string |
||
| 9 | */ |
||
| 10 | private $exchange; |
||
| 11 | |||
| 12 | /** |
||
| 13 | * @var string |
||
| 14 | */ |
||
| 15 | private $routingKey; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @var bool |
||
| 19 | */ |
||
| 20 | private $nowait = false; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @var array |
||
| 24 | */ |
||
| 25 | private $arguments = []; |
||
| 26 | |||
| 27 | |||
| 28 | 4 | public function __construct(string $exchange, string $routingKey = '', bool $nowait = false, array $arguments = []) |
|
| 29 | { |
||
| 30 | 4 | $this->exchange = $exchange; |
|
| 31 | 4 | $this->routingKey = $routingKey; |
|
| 32 | 4 | $this->nowait = $nowait; |
|
| 33 | 4 | $this->arguments = $arguments; |
|
| 34 | 4 | } |
|
| 35 | |||
| 36 | |||
| 37 | 1 | public function getExchange(): string |
|
| 40 | } |
||
| 41 | |||
| 42 | |||
| 43 | 1 | public function getRoutingKey(): string |
|
| 46 | } |
||
| 47 | |||
| 48 | |||
| 49 | 1 | public function isNowait(): bool |
|
| 52 | } |
||
| 53 | |||
| 54 | |||
| 55 | 1 | public function getArguments(): array |
|
| 58 | } |
||
| 59 | |||
| 61 |