These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more
1 | <?php |
||
2 | namespace PhpAmqpLib\Exception; |
||
3 | |||
4 | //TODO refactor usage of static methods |
||
5 | use PhpAmqpLib\Channel\AbstractChannel; |
||
6 | use PhpAmqpLib\Helper\MiscHelper; |
||
7 | |||
8 | /** |
||
9 | * @deprecated use AMQPProtocolException instead |
||
10 | */ |
||
11 | View Code Duplication | class AMQPException extends \Exception |
|
12 | { |
||
13 | /** @var string */ |
||
14 | public $amqp_reply_code; |
||
15 | |||
16 | /** @var int */ |
||
17 | public $amqp_reply_text; |
||
18 | |||
19 | /** @var \Exception */ |
||
20 | public $amqp_method_sig; |
||
21 | |||
22 | /** @var array */ |
||
23 | public $args; |
||
24 | |||
25 | /** |
||
26 | * @param string $reply_code |
||
27 | * @param int $reply_text |
||
28 | * @param array $method_sig |
||
29 | */ |
||
30 | public function __construct($reply_code, $reply_text, $method_sig) |
||
31 | { |
||
32 | parent::__construct($reply_text, $reply_code); |
||
33 | |||
34 | $this->amqp_reply_code = $reply_code; // redundant, but kept for BC |
||
35 | $this->amqp_reply_text = $reply_text; // redundant, but kept for BC |
||
36 | $this->amqp_method_sig = $method_sig; |
||
37 | |||
38 | $ms = MiscHelper::methodSig($method_sig); |
||
39 | $protocolClass = AbstractChannel::$PROTOCOL_CONSTANTS_CLASS; |
||
0 ignored issues
–
show
|
|||
40 | $mn = isset($protocolClass::$GLOBAL_METHOD_NAMES[$ms]) |
||
41 | ? $protocolClass::$GLOBAL_METHOD_NAMES[$ms] |
||
42 | : $mn = ''; |
||
43 | |||
44 | $this->args = array($reply_code, $reply_text, $method_sig, $mn); |
||
45 | } |
||
46 | } |
||
47 |
This property has been deprecated. The supplier of the class has supplied an explanatory message.
The explanatory message should give you some clue as to whether and when the property will be removed from the class and what other property to use instead.