Qos   A
last analyzed

Complexity

Total Complexity 6

Size/Duplication

Total Lines 75
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 6
dl 0
loc 75
ccs 15
cts 15
cp 1
rs 10
c 0
b 0
f 0

6 Methods

Rating   Name   Duplication   Size   Complexity  
A getPrefetchSize() 0 4 1
A setPrefetchSize() 0 6 1
A getPrefetchCount() 0 4 1
A setPrefetchCount() 0 6 1
A isGlobal() 0 4 1
A setGlobal() 0 6 1
1
<?php
2
3
namespace RabbitMqModule\Options;
4
5
use Zend\Stdlib\AbstractOptions;
6
7
/**
8
 * Class Qos
9
 * @package RabbitMqModule\Options
10
 */
11
class Qos extends AbstractOptions
12
{
13
    /**
14
     * @var int
15
     */
16
    protected $prefetchSize = 0;
17
    /**
18
     * @var int
19
     */
20
    protected $prefetchCount = 0;
21
    /**
22
     * @var bool
23
     */
24
    protected $global = false;
25
26
    /**
27
     * @return int
28
     */
29 3
    public function getPrefetchSize()
30
    {
31 3
        return $this->prefetchSize;
32
    }
33
34
    /**
35
     * @param int $prefetchSize
36
     *
37
     * @return $this
38
     */
39 5
    public function setPrefetchSize($prefetchSize)
40
    {
41 5
        $this->prefetchSize = $prefetchSize;
42
43 5
        return $this;
44
    }
45
46
    /**
47
     * @return int
48
     */
49 3
    public function getPrefetchCount()
50
    {
51 3
        return $this->prefetchCount;
52
    }
53
54
    /**
55
     * @param int $prefetchCount
56
     *
57
     * @return $this
58
     */
59 5
    public function setPrefetchCount($prefetchCount)
60
    {
61 5
        $this->prefetchCount = $prefetchCount;
62
63 5
        return $this;
64
    }
65
66
    /**
67
     * @return bool
68
     */
69 1
    public function isGlobal()
70
    {
71 1
        return $this->global;
72
    }
73
74
    /**
75
     * @param bool $global
76
     *
77
     * @return $this
78
     */
79 1
    public function setGlobal($global)
80
    {
81 1
        $this->global = $global;
82
83 1
        return $this;
84
    }
85
}
86