RemoveResult::__construct()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 4
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 5
ccs 4
cts 4
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 2
crap 1
1
<?php
2
/**
3
 * Created by gerk on 05.11.17 17:44
4
 */
5
6
namespace PeekAndPoke\Component\Slumber\Data\Result;
7
8
/**
9
 *
10
 *
11
 * @author Karsten J. Gerber <[email protected]>
12
 */
13
class RemoveResult
14
{
15
    /** @var int */
16
    private $deletedCount;
17
    /** @var bool */
18
    private $acknowledged;
19
20
    /**
21
     * @param int  $deletedCount
22
     * @param bool $acknowledged
23
     */
24 24
    public function __construct($deletedCount, $acknowledged)
25
    {
26 24
        $this->deletedCount = $deletedCount;
27 24
        $this->acknowledged = $acknowledged;
28 24
    }
29
30
    /**
31
     * @return int
32
     */
33
    public function getDeletedCount()
34
    {
35
        return $this->deletedCount;
36
    }
37
38
    /**
39
     * @return bool
40
     */
41
    public function isAcknowledged()
42
    {
43
        return $this->acknowledged;
44
    }
45
}
46