1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
/* This file was autogenerated by spec/parser.php - Do not modify */ |
4
|
|
|
|
5
|
|
|
namespace PhpAmqpLib\Helper\Protocol; |
6
|
|
|
|
7
|
|
|
class MethodMap091 |
8
|
|
|
{ |
9
|
|
|
|
10
|
|
|
protected $method_map = array( |
11
|
|
|
'10,10' => 'connection_start', |
12
|
|
|
'10,11' => 'connection_start_ok', |
13
|
|
|
'10,20' => 'connection_secure', |
14
|
|
|
'10,21' => 'connection_secure_ok', |
15
|
|
|
'10,30' => 'connection_tune', |
16
|
|
|
'10,31' => 'connection_tune_ok', |
17
|
|
|
'10,40' => 'connection_open', |
18
|
|
|
'10,41' => 'connection_open_ok', |
19
|
|
|
'10,50' => 'connection_close', |
20
|
|
|
'10,51' => 'connection_close_ok', |
21
|
|
|
'10,60' => 'connection_blocked', |
22
|
|
|
'10,61' => 'connection_unblocked', |
23
|
|
|
'20,10' => 'channel_open', |
24
|
|
|
'20,11' => 'channel_open_ok', |
25
|
|
|
'20,20' => 'channel_flow', |
26
|
|
|
'20,21' => 'channel_flow_ok', |
27
|
|
|
'20,40' => 'channel_close', |
28
|
|
|
'20,41' => 'channel_close_ok', |
29
|
|
|
'30,10' => 'access_request', |
30
|
|
|
'30,11' => 'access_request_ok', |
31
|
|
|
'40,10' => 'exchange_declare', |
32
|
|
|
'40,11' => 'exchange_declare_ok', |
33
|
|
|
'40,20' => 'exchange_delete', |
34
|
|
|
'40,21' => 'exchange_delete_ok', |
35
|
|
|
'40,30' => 'exchange_bind', |
36
|
|
|
'40,31' => 'exchange_bind_ok', |
37
|
|
|
'40,40' => 'exchange_unbind', |
38
|
|
|
'40,51' => 'exchange_unbind_ok', |
39
|
|
|
'50,10' => 'queue_declare', |
40
|
|
|
'50,11' => 'queue_declare_ok', |
41
|
|
|
'50,20' => 'queue_bind', |
42
|
|
|
'50,21' => 'queue_bind_ok', |
43
|
|
|
'50,30' => 'queue_purge', |
44
|
|
|
'50,31' => 'queue_purge_ok', |
45
|
|
|
'50,40' => 'queue_delete', |
46
|
|
|
'50,41' => 'queue_delete_ok', |
47
|
|
|
'50,50' => 'queue_unbind', |
48
|
|
|
'50,51' => 'queue_unbind_ok', |
49
|
|
|
'60,10' => 'basic_qos', |
50
|
|
|
'60,11' => 'basic_qos_ok', |
51
|
|
|
'60,20' => 'basic_consume', |
52
|
|
|
'60,21' => 'basic_consume_ok', |
53
|
|
|
'60,30' => 'basic_cancel_from_server', |
54
|
|
|
'60,31' => 'basic_cancel_ok', |
55
|
|
|
'60,40' => 'basic_publish', |
56
|
|
|
'60,50' => 'basic_return', |
57
|
|
|
'60,60' => 'basic_deliver', |
58
|
|
|
'60,70' => 'basic_get', |
59
|
|
|
'60,71' => 'basic_get_ok', |
60
|
|
|
'60,72' => 'basic_get_empty', |
61
|
|
|
'60,80' => 'basic_ack_from_server', |
62
|
|
|
'60,90' => 'basic_reject', |
63
|
|
|
'60,100' => 'basic_recover_async', |
64
|
|
|
'60,110' => 'basic_recover', |
65
|
|
|
'60,111' => 'basic_recover_ok', |
66
|
|
|
'60,120' => 'basic_nack_from_server', |
67
|
|
|
'90,10' => 'tx_select', |
68
|
|
|
'90,11' => 'tx_select_ok', |
69
|
|
|
'90,20' => 'tx_commit', |
70
|
|
|
'90,21' => 'tx_commit_ok', |
71
|
|
|
'90,30' => 'tx_rollback', |
72
|
|
|
'90,31' => 'tx_rollback_ok', |
73
|
|
|
'85,10' => 'confirm_select', |
74
|
|
|
'85,11' => 'confirm_select_ok', |
75
|
|
|
); |
76
|
|
|
|
77
|
|
|
|
78
|
|
|
|
79
|
60 |
|
public function get_method($method_sig) |
80
|
|
|
{ |
81
|
60 |
|
return $this->method_map[$method_sig]; |
82
|
|
|
} |
83
|
|
|
|
84
|
|
|
|
85
|
|
|
|
86
|
60 |
|
public function valid_method($method_sig) |
87
|
|
|
{ |
88
|
60 |
|
return array_key_exists($method_sig, $this->method_map); |
89
|
|
|
} |
90
|
|
|
|
91
|
|
|
} |
92
|
|
|
|