1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
/* This file was autogenerated by spec/parser.php - Do not modify */ |
4
|
|
|
|
5
|
|
|
namespace PhpAmqpLib\Helper\Protocol; |
6
|
|
|
|
7
|
|
|
class MethodMap080 |
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_redirect', |
20
|
|
|
'10,60' => 'connection_close', |
21
|
|
|
'10,61' => 'connection_close_ok', |
22
|
|
|
'20,10' => 'channel_open', |
23
|
|
|
'20,11' => 'channel_open_ok', |
24
|
|
|
'20,20' => 'channel_flow', |
25
|
|
|
'20,21' => 'channel_flow_ok', |
26
|
|
|
'20,30' => 'channel_alert', |
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
|
|
|
'50,10' => 'queue_declare', |
36
|
|
|
'50,11' => 'queue_declare_ok', |
37
|
|
|
'50,20' => 'queue_bind', |
38
|
|
|
'50,21' => 'queue_bind_ok', |
39
|
|
|
'50,30' => 'queue_purge', |
40
|
|
|
'50,31' => 'queue_purge_ok', |
41
|
|
|
'50,40' => 'queue_delete', |
42
|
|
|
'50,41' => 'queue_delete_ok', |
43
|
|
|
'50,50' => 'queue_unbind', |
44
|
|
|
'50,51' => 'queue_unbind_ok', |
45
|
|
|
'60,10' => 'basic_qos', |
46
|
|
|
'60,11' => 'basic_qos_ok', |
47
|
|
|
'60,20' => 'basic_consume', |
48
|
|
|
'60,21' => 'basic_consume_ok', |
49
|
|
|
'60,30' => 'basic_cancel', |
50
|
|
|
'60,31' => 'basic_cancel_ok', |
51
|
|
|
'60,40' => 'basic_publish', |
52
|
|
|
'60,50' => 'basic_return', |
53
|
|
|
'60,60' => 'basic_deliver', |
54
|
|
|
'60,70' => 'basic_get', |
55
|
|
|
'60,71' => 'basic_get_ok', |
56
|
|
|
'60,72' => 'basic_get_empty', |
57
|
|
|
'60,80' => 'basic_ack', |
58
|
|
|
'60,90' => 'basic_reject', |
59
|
|
|
'60,100' => 'basic_recover_async', |
60
|
|
|
'60,110' => 'basic_recover', |
61
|
|
|
'60,111' => 'basic_recover_ok', |
62
|
|
|
'70,10' => 'file_qos', |
63
|
|
|
'70,11' => 'file_qos_ok', |
64
|
|
|
'70,20' => 'file_consume', |
65
|
|
|
'70,21' => 'file_consume_ok', |
66
|
|
|
'70,30' => 'file_cancel', |
67
|
|
|
'70,31' => 'file_cancel_ok', |
68
|
|
|
'70,40' => 'file_open', |
69
|
|
|
'70,41' => 'file_open_ok', |
70
|
|
|
'70,50' => 'file_stage', |
71
|
|
|
'70,60' => 'file_publish', |
72
|
|
|
'70,70' => 'file_return', |
73
|
|
|
'70,80' => 'file_deliver', |
74
|
|
|
'70,90' => 'file_ack', |
75
|
|
|
'70,100' => 'file_reject', |
76
|
|
|
'80,10' => 'stream_qos', |
77
|
|
|
'80,11' => 'stream_qos_ok', |
78
|
|
|
'80,20' => 'stream_consume', |
79
|
|
|
'80,21' => 'stream_consume_ok', |
80
|
|
|
'80,30' => 'stream_cancel', |
81
|
|
|
'80,31' => 'stream_cancel_ok', |
82
|
|
|
'80,40' => 'stream_publish', |
83
|
|
|
'80,50' => 'stream_return', |
84
|
|
|
'80,60' => 'stream_deliver', |
85
|
|
|
'90,10' => 'tx_select', |
86
|
|
|
'90,11' => 'tx_select_ok', |
87
|
|
|
'90,20' => 'tx_commit', |
88
|
|
|
'90,21' => 'tx_commit_ok', |
89
|
|
|
'90,30' => 'tx_rollback', |
90
|
|
|
'90,31' => 'tx_rollback_ok', |
91
|
|
|
'100,10' => 'dtx_select', |
92
|
|
|
'100,11' => 'dtx_select_ok', |
93
|
|
|
'100,20' => 'dtx_start', |
94
|
|
|
'100,21' => 'dtx_start_ok', |
95
|
|
|
'110,10' => 'tunnel_request', |
96
|
|
|
'120,10' => 'test_integer', |
97
|
|
|
'120,11' => 'test_integer_ok', |
98
|
|
|
'120,20' => 'test_string', |
99
|
|
|
'120,21' => 'test_string_ok', |
100
|
|
|
'120,30' => 'test_table', |
101
|
|
|
'120,31' => 'test_table_ok', |
102
|
|
|
'120,40' => 'test_content', |
103
|
|
|
'120,41' => 'test_content_ok', |
104
|
|
|
); |
105
|
|
|
|
106
|
|
|
|
107
|
|
|
|
108
|
|
|
public function get_method($method_sig) |
109
|
|
|
{ |
110
|
|
|
return $this->method_map[$method_sig]; |
111
|
|
|
} |
112
|
|
|
|
113
|
|
|
|
114
|
|
|
|
115
|
|
|
public function valid_method($method_sig) |
116
|
|
|
{ |
117
|
|
|
return array_key_exists($method_sig, $this->method_map); |
118
|
|
|
} |
119
|
|
|
|
120
|
|
|
} |
121
|
|
|
|