Completed
Push — 1.0 ( ca0730...8bff85 )
by David
06:02
created

ConsumerTrait::getArguments()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
namespace Mouf\AmqpClient;
4
5
trait ConsumerTrait
6
{
7
    /**
8
     * @var string
9
     */
10
    private $consumerTag = '';
11
12
    /**
13
     * @var bool
14
     */
15
    private $noLocal = false;
16
17
    /**
18
     * @var bool
19
     */
20
    private $noAck = false;
21
22
    /**
23
     * @var bool
24
     */
25
    private $exclusive = false;
26
27
    /**
28
     * @var bool
29
     */
30
    private $noWait = false;
31
32
    /**
33
     * @var array
34
     */
35
    private $arguments = [];
36
37
    /**
38
     * @var int
39
     */
40
    private $ticket = null;
41
42
    /**
43
     * @return string
44
     */
45
    public function getConsumerTag()
46
    {
47
        return $this->consumerTag;
48
    }
49
50
    /**
51
     * @param string $consumerTag
52
     */
53
    public function setConsumerTag($consumerTag)
54
    {
55
        $this->consumerTag = $consumerTag;
56
    }
57
58
    /**
59
     * @return bool
60
     */
61
    public function isNoLocal()
62
    {
63
        return $this->noLocal;
64
    }
65
66
    /**
67
     * @param bool $noLocal
68
     */
69
    public function setNoLocal($noLocal)
70
    {
71
        $this->noLocal = $noLocal;
72
    }
73
74
    /**
75
     * @return bool
76
     */
77
    public function isNoAck()
78
    {
79
        return $this->noAck;
80
    }
81
82
    /**
83
     * @param bool $noAck
84
     */
85
    public function setNoAck($noAck)
86
    {
87
        $this->noAck = $noAck;
88
    }
89
90
    /**
91
     * @return bool
92
     */
93
    public function isExclusive()
94
    {
95
        return $this->exclusive;
96
    }
97
98
    /**
99
     * @param bool $exclusive
100
     */
101
    public function setExclusive($exclusive)
102
    {
103
        $this->exclusive = $exclusive;
104
    }
105
106
    /**
107
     * @return bool
108
     */
109
    public function isNoWait()
110
    {
111
        return $this->noWait;
112
    }
113
114
    /**
115
     * @param bool $noWait
116
     */
117
    public function setNoWait($noWait)
118
    {
119
        $this->noWait = $noWait;
120
    }
121
122
    /**
123
     * @return array
124
     */
125
    public function getArguments()
126
    {
127
        return $this->arguments;
128
    }
129
130
    /**
131
     * @param array $arguments
132
     */
133
    public function setArguments($arguments)
134
    {
135
        $this->arguments = $arguments;
136
    }
137
138
    /**
139
     * @return int
140
     */
141
    public function getTicket()
142
    {
143
        return $this->ticket;
144
    }
145
146
    /**
147
     * @param int $ticket
148
     */
149
    public function setTicket($ticket)
150
    {
151
        $this->ticket = $ticket;
152
    }
153
}
154