1 | <?php |
||
17 | class Request |
||
18 | { |
||
19 | /** |
||
20 | * @var ChannelInterface |
||
21 | */ |
||
22 | protected $channel; |
||
23 | |||
24 | /** |
||
25 | * @var string |
||
26 | */ |
||
27 | protected $name; |
||
28 | |||
29 | /** |
||
30 | * @var ProtocolInterface|string |
||
31 | */ |
||
32 | protected $message; |
||
33 | |||
34 | /** |
||
35 | * @var float |
||
36 | */ |
||
37 | protected $params; |
||
38 | |||
39 | /** |
||
40 | * @var int |
||
41 | */ |
||
42 | protected $counter; |
||
43 | |||
44 | /** |
||
45 | * @param ChannelInterface $channel |
||
46 | * @param string $name |
||
47 | * @param string|ProtocolInterface $message |
||
48 | * @param mixed[] $params |
||
49 | */ |
||
50 | 17 | public function __construct($channel, $name, $message, $params = []) |
|
66 | |||
67 | /** |
||
68 | * |
||
69 | */ |
||
70 | 6 | public function __destruct() |
|
78 | |||
79 | /** |
||
80 | * Send the prepared request. |
||
81 | * |
||
82 | * @return PromiseInterface |
||
83 | * @resolves mixed |
||
84 | * @rejects Error|Exception|string|null |
||
85 | * @cancels Error|Exception|string|null |
||
86 | */ |
||
87 | 1 | public function __invoke() |
|
91 | |||
92 | /** |
||
93 | * Send the prepared request. |
||
94 | * |
||
95 | * @return PromiseInterface |
||
96 | * @resolves mixed |
||
97 | * @rejects Error|Exception|string|null |
||
98 | * @cancels Error|Exception|string|null |
||
99 | */ |
||
100 | 1 | public function call() |
|
104 | |||
105 | /** |
||
106 | * Send the request using passed Promise. |
||
107 | * |
||
108 | * @param PromiseInterface $promise |
||
109 | * @return PromiseInterface |
||
110 | */ |
||
111 | 5 | protected function send(PromiseInterface $promise) |
|
136 | |||
137 | /** |
||
138 | * @param PromiseInterface $promise |
||
139 | * @param Error|Exception|ThrowableProxy $ex |
||
140 | */ |
||
141 | 4 | protected function retryOrReset(PromiseInterface $promise, $ex) |
|
154 | |||
155 | /** |
||
156 | * @param PromiseInterface $promise |
||
157 | */ |
||
158 | 3 | private function retry(PromiseInterface $promise) |
|
181 | } |
||
182 |
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..