Confirm::isOk()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 0
cts 2
cp 0
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
crap 2
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