QueueBind::isNowait()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 1
Metric Value
eloc 1
c 1
b 0
f 1
dl 0
loc 3
rs 10
ccs 2
cts 2
cp 1
cc 1
nc 1
nop 0
crap 1
1
<?php declare(strict_types = 1);
2
3
namespace Portiny\RabbitMQ\Queue;
4
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
38
	{
39 1
		return $this->exchange;
40
	}
41
42
43 1
	public function getRoutingKey(): string
44
	{
45 1
		return $this->routingKey;
46
	}
47
48
49 1
	public function isNowait(): bool
50
	{
51 1
		return $this->nowait;
52
	}
53
54
55 1
	public function getArguments(): array
56
	{
57 1
		return $this->arguments;
58
	}
59
60
}
61