1 | <?php |
||
8 | class Client |
||
9 | { |
||
10 | /** |
||
11 | * RabbitMq host. |
||
12 | * |
||
13 | * @var string |
||
14 | */ |
||
15 | private $host; |
||
16 | |||
17 | /** |
||
18 | * RabbitMq port. |
||
19 | * |
||
20 | * @var string |
||
21 | */ |
||
22 | private $port; |
||
23 | |||
24 | /** |
||
25 | * RabbitMq user. |
||
26 | * |
||
27 | * @var string |
||
28 | */ |
||
29 | private $user; |
||
30 | |||
31 | /** |
||
32 | * RabbitMq password. |
||
33 | * |
||
34 | * @var string |
||
35 | */ |
||
36 | private $password; |
||
37 | |||
38 | /** |
||
39 | * It's for QOS prefetch-size http://www.rabbitmq.com/amqp-0-9-1-reference.html#basic.qos. |
||
40 | * |
||
41 | * @var int |
||
42 | */ |
||
43 | private $prefetchSize = null; |
||
44 | |||
45 | /** |
||
46 | * It's for QOS prefetch-count http://www.rabbitmq.com/amqp-0-9-1-reference.html#basic.qos. |
||
47 | * |
||
48 | * @var int |
||
49 | */ |
||
50 | private $prefetchCount = null; |
||
51 | |||
52 | /** |
||
53 | * It's for QOS global http://www.rabbitmq.com/amqp-0-9-1-reference.html#basic.qos. |
||
54 | * |
||
55 | * @var int |
||
56 | */ |
||
57 | private $aGlobal = null; |
||
58 | |||
59 | /** |
||
60 | * RabbitMq connection. |
||
61 | * |
||
62 | * @var AMQPStreamConnection |
||
63 | */ |
||
64 | private $connection = null; |
||
65 | |||
66 | /** |
||
67 | * RabbitMq channel. |
||
68 | * |
||
69 | * @var \AMQPChannel |
||
70 | */ |
||
71 | private $channel = null; |
||
72 | |||
73 | /** |
||
74 | * List of RabbitMq object. |
||
75 | * |
||
76 | * @var RabbitMqObjectInterface[] |
||
77 | */ |
||
78 | private $rabbitMqObjects = []; |
||
79 | |||
80 | public function __construct($host, $port, $user, $password) |
||
87 | |||
88 | /** |
||
89 | * Get prefetch size for QOS. |
||
90 | */ |
||
91 | public function getPrefetchSize() |
||
95 | |||
96 | /** |
||
97 | * Set prefetch size |
||
98 | * It's for QOS prefetch-size http://www.rabbitmq.com/amqp-0-9-1-reference.html#basic.qos. |
||
99 | * |
||
100 | * @param int $prefetchSize |
||
101 | */ |
||
102 | public function setPrefetchSize($prefetchSize) |
||
108 | |||
109 | /** |
||
110 | * Get prefetch count for QOS. |
||
111 | */ |
||
112 | public function getPrefetchCount() |
||
116 | |||
117 | /** |
||
118 | * Set prefetch size |
||
119 | * It's for QOS prefetch-size http://www.rabbitmq.com/amqp-0-9-1-reference.html#basic.qos. |
||
120 | * |
||
121 | * @param int $prefetchCount |
||
122 | */ |
||
123 | public function setPrefetchCount($prefetchCount) |
||
129 | |||
130 | /** |
||
131 | * Get a global for QOS. |
||
132 | */ |
||
133 | public function getAGlobal() |
||
137 | |||
138 | /** |
||
139 | * Set global |
||
140 | * It's for QOS prefetch-size http://www.rabbitmq.com/amqp-0-9-1-reference.html#basic.qos. |
||
141 | * |
||
142 | * @param int $aGlobal |
||
143 | */ |
||
144 | public function setAGlobal($aGlobal) |
||
150 | |||
151 | /** |
||
152 | * Set RabbitMq object. |
||
153 | * |
||
154 | * @param RabbitMqObjectInterface[] $rabbitMqObjects |
||
155 | */ |
||
156 | public function setRabbitMqObjects(array $rabbitMqObjects) |
||
160 | |||
161 | public function register(RabbitMqObjectInterface $object) |
||
167 | |||
168 | /** |
||
169 | * Connection to the RabbitMq service with AMQPStreamConnection. |
||
170 | * |
||
171 | * @return AMQPChannel |
||
172 | */ |
||
173 | public function getChannel() |
||
191 | |||
192 | /** |
||
193 | * Returns the list of registered queues. |
||
194 | * |
||
195 | * @return QueueInterface[] |
||
196 | */ |
||
197 | public function getQueues() { |
||
202 | } |
||
203 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..