Confirm   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 53
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 81.82%

Importance

Changes 0
Metric Value
wmc 4
lcom 0
cbo 0
dl 0
loc 53
ccs 9
cts 11
cp 0.8182
rs 10
c 0
b 0
f 0

4 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 1
A isOk() 0 4 1
A getDeliveryTag() 0 4 1
A isMultiple() 0 4 1
1
<?php
2
3
namespace ButterAMQP;
4
5
class Confirm
6
{
7
    /**
8
     * @var bool
9
     */
10
    private $ok;
11
12
    /**
13
     * @var int
14
     */
15
    private $deliveryTag;
16
17
    /**
18
     * @var bool
19
     */
20
    private $multiple = false;
21
22
    /**
23
     * @param bool $ok
24
     * @param int  $deliveryTag
25
     * @param bool $multiple
26
     */
27 3
    public function __construct($ok, $deliveryTag, $multiple)
28
    {
29 3
        $this->ok = $ok;
30 3
        $this->deliveryTag = $deliveryTag;
31 3
        $this->multiple = $multiple;
32 3
    }
33
34
    /**
35
     * @return bool
36
     */
37
    public function isOk()
38
    {
39
        return $this->ok;
40
    }
41
42
    /**
43
     * @return int
44
     */
45 1
    public function getDeliveryTag()
46
    {
47 1
        return $this->deliveryTag;
48
    }
49
50
    /**
51
     * @return bool
52
     */
53 1
    public function isMultiple()
54
    {
55 1
        return $this->multiple;
56
    }
57
}
58