1 | <?php /** MicroRabbitMQ */ |
||
17 | class RabbitMQ |
||
18 | { |
||
19 | /** @var \AMQPConnection $connect Connect to broker */ |
||
20 | protected $connect; |
||
21 | /** @var \AMQPChannel $channel Channel of connection */ |
||
22 | protected $channel; |
||
23 | |||
24 | |||
25 | /** |
||
26 | * Constructor RabbitMQ |
||
27 | * |
||
28 | * @access public |
||
29 | * |
||
30 | * @param array $params connect to broker |
||
31 | * |
||
32 | * @result void |
||
33 | * @throws \AMQPConnectionException |
||
34 | */ |
||
35 | public function __construct(array $params = []) |
||
42 | |||
43 | /** |
||
44 | * Close RabbitMQ |
||
45 | * |
||
46 | * @access public |
||
47 | * @return void |
||
48 | */ |
||
49 | public function __destruct() |
||
53 | |||
54 | /** |
||
55 | * Send message |
||
56 | * |
||
57 | * @access public |
||
58 | * |
||
59 | * @param string $message message text |
||
60 | * @param string $route name route |
||
61 | * @param string $chat name chat room |
||
62 | * |
||
63 | * @return bool |
||
64 | * @throws \AMQPConnectionException |
||
65 | * @throws \AMQPChannelException |
||
66 | * @throws \AMQPExchangeException |
||
67 | */ |
||
68 | public function send($message, $route, $chat) |
||
75 | |||
76 | /** |
||
77 | * Read current message |
||
78 | * |
||
79 | * @access public |
||
80 | * |
||
81 | * @param string $chat name chat room |
||
82 | * @param string $route name route |
||
83 | * @param string $nameReader name queue |
||
84 | * |
||
85 | * @return \AMQPEnvelope|bool |
||
86 | * @throws \AMQPConnectionException |
||
87 | * @throws \AMQPChannelException |
||
88 | * @throws \AMQPQueueException |
||
89 | */ |
||
90 | public function read($chat, $route, $nameReader = 'random') |
||
107 | |||
108 | /** |
||
109 | * Read all messages |
||
110 | * |
||
111 | * @access public |
||
112 | * |
||
113 | * @param string $chat name chat room |
||
114 | * @param string $route name route |
||
115 | * @param string $nameReader name queue |
||
116 | * |
||
117 | * @return array |
||
118 | * @throws \AMQPConnectionException |
||
119 | * @throws \AMQPQueueException |
||
120 | * @throws \AMQPChannelException |
||
121 | */ |
||
122 | public function readAll($chat, $route, $nameReader) |
||
138 | } |
||
139 |
This check marks calls to methods that do not seem to exist on an object.
This is most likely the result of a method being renamed without all references to it being renamed likewise.