Wait091::get_wait()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
cc 1
eloc 2
nc 1
nop 1
crap 1
1
<?php
2
3
/* This file was autogenerated by spec/parser.php - Do not modify */
4
5
namespace PhpAmqpLib\Helper\Protocol;
6
7
class Wait091
8
{
9
10
    protected $wait = array(
11
        'connection.start' => '10,10',
12
        'connection.start_ok' => '10,11',
13
        'connection.secure' => '10,20',
14
        'connection.secure_ok' => '10,21',
15
        'connection.tune' => '10,30',
16
        'connection.tune_ok' => '10,31',
17
        'connection.open' => '10,40',
18
        'connection.open_ok' => '10,41',
19
        'connection.close' => '10,50',
20
        'connection.close_ok' => '10,51',
21
        'connection.blocked' => '10,60',
22
        'connection.unblocked' => '10,61',
23
        'channel.open' => '20,10',
24
        'channel.open_ok' => '20,11',
25
        'channel.flow' => '20,20',
26
        'channel.flow_ok' => '20,21',
27
        'channel.close' => '20,40',
28
        'channel.close_ok' => '20,41',
29
        'access.request' => '30,10',
30
        'access.request_ok' => '30,11',
31
        'exchange.declare' => '40,10',
32
        'exchange.declare_ok' => '40,11',
33
        'exchange.delete' => '40,20',
34
        'exchange.delete_ok' => '40,21',
35
        'exchange.bind' => '40,30',
36
        'exchange.bind_ok' => '40,31',
37
        'exchange.unbind' => '40,40',
38
        'exchange.unbind_ok' => '40,51',
39
        'queue.declare' => '50,10',
40
        'queue.declare_ok' => '50,11',
41
        'queue.bind' => '50,20',
42
        'queue.bind_ok' => '50,21',
43
        'queue.purge' => '50,30',
44
        'queue.purge_ok' => '50,31',
45
        'queue.delete' => '50,40',
46
        'queue.delete_ok' => '50,41',
47
        'queue.unbind' => '50,50',
48
        'queue.unbind_ok' => '50,51',
49
        'basic.qos' => '60,10',
50
        'basic.qos_ok' => '60,11',
51
        'basic.consume' => '60,20',
52
        'basic.consume_ok' => '60,21',
53
        'basic.cancel' => '60,30',
54
        'basic.cancel_ok' => '60,31',
55
        'basic.publish' => '60,40',
56
        'basic.return' => '60,50',
57
        'basic.deliver' => '60,60',
58
        'basic.get' => '60,70',
59
        'basic.get_ok' => '60,71',
60
        'basic.get_empty' => '60,72',
61
        'basic.ack' => '60,80',
62
        'basic.reject' => '60,90',
63
        'basic.recover_async' => '60,100',
64
        'basic.recover' => '60,110',
65
        'basic.recover_ok' => '60,111',
66
        'basic.nack' => '60,120',
67
        'tx.select' => '90,10',
68
        'tx.select_ok' => '90,11',
69
        'tx.commit' => '90,20',
70
        'tx.commit_ok' => '90,21',
71
        'tx.rollback' => '90,30',
72
        'tx.rollback_ok' => '90,31',
73
        'confirm.select' => '85,10',
74
        'confirm.select_ok' => '85,11',
75
    );
76
77
78
79 60
    public function get_wait($method)
80
    {
81 60
        return $this->wait[$method];
82
    }
83
84
}
85