1 | <?php |
||
10 | class Client |
||
11 | { |
||
12 | /** |
||
13 | * RabbitMq host. |
||
14 | * |
||
15 | * @var string |
||
16 | */ |
||
17 | private $host; |
||
18 | |||
19 | /** |
||
20 | * RabbitMq port. |
||
21 | * |
||
22 | * @var string |
||
23 | */ |
||
24 | private $port; |
||
25 | |||
26 | /** |
||
27 | * RabbitMq user. |
||
28 | * |
||
29 | * @var string |
||
30 | */ |
||
31 | private $user; |
||
32 | |||
33 | /** |
||
34 | * RabbitMq password. |
||
35 | * |
||
36 | * @var string |
||
37 | */ |
||
38 | private $password; |
||
39 | |||
40 | /** |
||
41 | * It's for QOS prefetch-size http://www.rabbitmq.com/amqp-0-9-1-reference.html#basic.qos. |
||
42 | * |
||
43 | * @var int |
||
44 | */ |
||
45 | private $prefetchSize = null; |
||
46 | |||
47 | /** |
||
48 | * It's for QOS prefetch-count http://www.rabbitmq.com/amqp-0-9-1-reference.html#basic.qos. |
||
49 | * |
||
50 | * @var int |
||
51 | */ |
||
52 | private $prefetchCount = null; |
||
53 | |||
54 | /** |
||
55 | * It's for QOS global http://www.rabbitmq.com/amqp-0-9-1-reference.html#basic.qos. |
||
56 | * |
||
57 | * @var int |
||
58 | */ |
||
59 | private $aGlobal = null; |
||
60 | |||
61 | /** |
||
62 | * RabbitMq connection. |
||
63 | * |
||
64 | * @var AMQPStreamConnection |
||
65 | */ |
||
66 | private $connection = null; |
||
67 | |||
68 | /** |
||
69 | * RabbitMq channel. |
||
70 | * |
||
71 | * @var \AMQPChannel |
||
72 | */ |
||
73 | private $channel = null; |
||
74 | |||
75 | /** |
||
76 | * List of RabbitMq object. |
||
77 | * |
||
78 | * @var RabbitMqObjectInterface[] |
||
79 | */ |
||
80 | private $rabbitMqObjects = []; |
||
81 | |||
82 | public function __construct($host, $port, $user, $password) |
||
89 | |||
90 | /** |
||
91 | * Get prefetch size for QOS. |
||
92 | */ |
||
93 | public function getPrefetchSize() |
||
97 | |||
98 | /** |
||
99 | * Set prefetch size |
||
100 | * It's for QOS prefetch-size http://www.rabbitmq.com/amqp-0-9-1-reference.html#basic.qos. |
||
101 | * |
||
102 | * @param int $prefetchSize |
||
103 | */ |
||
104 | public function setPrefetchSize($prefetchSize) |
||
110 | |||
111 | /** |
||
112 | * Get prefetch count for QOS. |
||
113 | */ |
||
114 | public function getPrefetchCount() |
||
118 | |||
119 | /** |
||
120 | * Set prefetch size |
||
121 | * It's for QOS prefetch-size http://www.rabbitmq.com/amqp-0-9-1-reference.html#basic.qos. |
||
122 | * |
||
123 | * @param int $prefetchCount |
||
124 | */ |
||
125 | public function setPrefetchCount($prefetchCount) |
||
131 | |||
132 | /** |
||
133 | * Get a global for QOS. |
||
134 | */ |
||
135 | public function getAGlobal() |
||
139 | |||
140 | /** |
||
141 | * Set global |
||
142 | * It's for QOS prefetch-size http://www.rabbitmq.com/amqp-0-9-1-reference.html#basic.qos. |
||
143 | * |
||
144 | * @param int $aGlobal |
||
145 | */ |
||
146 | public function setAGlobal($aGlobal) |
||
152 | |||
153 | /** |
||
154 | * Set RabbitMq object. |
||
155 | * |
||
156 | * @param RabbitMqObjectInterface[] $rabbitMqObjects |
||
157 | */ |
||
158 | public function setRabbitMqObjects(array $rabbitMqObjects) |
||
162 | |||
163 | public function register(RabbitMqObjectInterface $object) |
||
169 | |||
170 | /** |
||
171 | * Connection to the RabbitMq service with AMQPStreamConnection. |
||
172 | * |
||
173 | * @return AMQPChannel |
||
174 | */ |
||
175 | public function getChannel() |
||
206 | |||
207 | /** |
||
208 | * Returns the list of registered queues. |
||
209 | * |
||
210 | * @return QueueInterface[] |
||
211 | */ |
||
212 | public function getQueues() |
||
218 | } |
||
219 |
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..