1 | <?php |
||
11 | class Channel extends Component |
||
12 | { |
||
13 | const EXCHANGE_TYPE_TOPIC = 'topic'; |
||
14 | const EXCHANGE_TYPE_DIRECT = 'direct'; |
||
15 | const EXCHANGE_TYPE_HEADERS = 'headers'; |
||
16 | const EXCHANGE_TYPE_FANOUT = 'fanout'; |
||
17 | |||
18 | /** |
||
19 | * @var Connection |
||
20 | */ |
||
21 | protected $connection; |
||
22 | |||
23 | /** |
||
24 | * @var AMQPChannel |
||
25 | */ |
||
26 | protected $amqpChannel; |
||
27 | |||
28 | /** |
||
29 | * @inheritdoc |
||
30 | */ |
||
31 | public function __construct(ConnectionInterface $connection, $config = []) |
||
37 | |||
38 | public function __destruct() |
||
42 | |||
43 | /** |
||
44 | * Server should continue sending data to us. Default on new channels. |
||
45 | */ |
||
46 | public function enableFlow() |
||
50 | |||
51 | /** |
||
52 | * Server should stop sending data to us. |
||
53 | */ |
||
54 | public function disableFlow() |
||
58 | |||
59 | public function send() |
||
64 | |||
65 | public function getMessageOne($queue, $no_ack = false) |
||
75 | |||
76 | public function getMessageConsume($queue, Callable $callback, Array $options = []) |
||
97 | |||
98 | public function declareExchange($name, $type, $passive = false, $durable = false, $auto_delete = true, $internal = false) |
||
102 | |||
103 | public function deleteExchange($name, $if_unused = false, $if_empty = false, $nowait = false) |
||
107 | |||
108 | public function declareQueue($name, $passive = false, $durable = false, $auto_delete = true, $internal = false) |
||
112 | |||
113 | public function deleteQueue($name, $if_unused = false, $if_empty = false, $nowait = false) |
||
117 | |||
118 | public function purgeQueue($name, $nowait = false) |
||
122 | |||
123 | public function bindQueueExchange($queue, $exchange, $routing_key) |
||
127 | } |
||
128 |
Our type inference engine has found a suspicous assignment of a value to a property. This check raises an issue when a value that can be of a given class or a super-class is assigned to a property that is type hinted more strictly.
Either this assignment is in error or an instanceof check should be added for that assignment.