| Total Complexity | 5 |
| Total Lines | 57 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 1 |
| 1 | <?php declare(strict_types = 1); |
||
| 5 | final class ExchangeBind |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * @var string |
||
| 9 | */ |
||
| 10 | private $destination; |
||
| 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( |
|
| 29 | string $destination, |
||
| 30 | string $routingKey = '', |
||
| 31 | bool $nowait = false, |
||
| 32 | array $arguments = [] |
||
| 33 | ) { |
||
| 34 | 4 | $this->destination = $destination; |
|
| 35 | 4 | $this->routingKey = $routingKey; |
|
| 36 | 4 | $this->nowait = $nowait; |
|
| 37 | 4 | $this->arguments = $arguments; |
|
| 38 | 4 | } |
|
| 39 | |||
| 40 | |||
| 41 | 1 | public function getDestination(): string |
|
| 42 | { |
||
| 43 | 1 | return $this->destination; |
|
| 44 | } |
||
| 45 | |||
| 46 | |||
| 47 | 1 | public function getRoutingKey(): string |
|
| 50 | } |
||
| 51 | |||
| 52 | |||
| 53 | 1 | public function isNowait(): bool |
|
| 54 | { |
||
| 55 | 1 | return $this->nowait; |
|
| 56 | } |
||
| 57 | |||
| 58 | |||
| 59 | 1 | public function getArguments(): array |
|
| 62 | } |
||
| 63 | |||
| 64 | } |
||
| 65 |