1 | <?php |
||
16 | class Connection implements ConnectionInterface |
||
17 | { |
||
18 | /** |
||
19 | * @var AMQPConnection |
||
20 | */ |
||
21 | protected $resource; |
||
22 | /** |
||
23 | * @var ConnectionOptions |
||
24 | */ |
||
25 | protected $options; |
||
26 | /** |
||
27 | * @var Channel |
||
28 | */ |
||
29 | protected $channelPrototype; |
||
30 | |||
31 | /** |
||
32 | * Connection constructor. |
||
33 | * |
||
34 | * @param AMQPConnection|ConnectionOptions $connection |
||
35 | * @param Channel $channelPrototype |
||
36 | * @throws Exception\BadMethodCallException |
||
37 | * @throws Exception\InvalidArgumentException |
||
38 | */ |
||
39 | 20 | public function __construct($connection, Channel $channelPrototype = null) |
|
49 | |||
50 | /** |
||
51 | * @return ConnectionOptions |
||
52 | */ |
||
53 | 15 | public function getOptions() |
|
57 | |||
58 | /** |
||
59 | * @param ConnectionOptions|Traversable|array $options |
||
60 | * @return $this |
||
61 | * @throws Exception\InvalidArgumentException |
||
62 | * @throws Exception\BadMethodCallException |
||
63 | */ |
||
64 | 15 | public function setOptions($options) |
|
73 | |||
74 | /** |
||
75 | * @param ConnectionOptions $options |
||
76 | * @return AMQPConnection |
||
77 | */ |
||
78 | 8 | protected function createResource(ConnectionOptions $options) |
|
96 | |||
97 | /** |
||
98 | * @param mixed $paramValue |
||
99 | * @return bool |
||
100 | */ |
||
101 | 8 | protected function filterConnectionParam($paramValue) |
|
105 | |||
106 | /** |
||
107 | * @param AMQPConnection $resource |
||
108 | * @return $this |
||
109 | */ |
||
110 | 20 | public function setResource(AMQPConnection $resource) |
|
115 | |||
116 | /** |
||
117 | * @return AMQPConnection |
||
118 | */ |
||
119 | 17 | public function getResource() |
|
123 | |||
124 | /** |
||
125 | * Establish a connection with the AMQP broker. |
||
126 | * |
||
127 | * @return $this |
||
128 | * @throws \AMQPConnectionException |
||
129 | */ |
||
130 | 9 | public function connect() |
|
140 | |||
141 | /** |
||
142 | * Close any open connections and initiate a new one with the AMQP broker. |
||
143 | * |
||
144 | * @return $this |
||
145 | */ |
||
146 | 2 | public function reconnect() |
|
156 | |||
157 | /** |
||
158 | * Closes the connection with the AMQP broker. |
||
159 | * |
||
160 | * @return $this |
||
161 | */ |
||
162 | 9 | public function disconnect() |
|
173 | |||
174 | /** |
||
175 | * Check whether the connection to the AMQP broker is still valid. |
||
176 | * |
||
177 | * @return bool |
||
178 | */ |
||
179 | 10 | public function isConnected() |
|
183 | |||
184 | /** |
||
185 | * @param \AMQPChannel $resource |
||
186 | * @return Channel |
||
187 | * @throws \AMQPConnectionException |
||
188 | */ |
||
189 | 10 | public function createChannel($resource = null) |
|
206 | |||
207 | /** |
||
208 | * @param Channel $channel |
||
209 | */ |
||
210 | 20 | public function registerChannel(Channel $channel) |
|
214 | |||
215 | /** |
||
216 | * @return \AMQPChannel |
||
217 | * @throws \AMQPConnectionException |
||
218 | * @codeCoverageIgnore |
||
219 | */ |
||
220 | protected function createChannelResource() |
||
224 | } |
||
225 |
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.