Process::getEnd()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
eloc 1
dl 0
loc 3
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 0
crap 1
1
<?php
2
3
namespace Semaphoro;
4
5
6
class Process implements ProcessInterface
7
{
8
    /**
9
     * @var int
10
     */
11
    private $start;
12
13
    /**
14
     * @var int
15
     */
16
    private $end;
17
18
    /**
19
     * @var bool
20
     */
21
    private $isReprocess;
22
23
    /**
24
     * Range constructor.
25
     *
26
     * @param int $start
27
     * @param int $end
28
     * @param bool $isReprocess
29
     */
30 4
    public function __construct(int $start, int $end, bool $isReprocess)
31
    {
32 4
        $this->start = $start;
33 4
        $this->end = $end;
34 4
        $this->isReprocess = $isReprocess;
35 4
    }
36
37
    /**
38
     * @return string
39
     */
40 4
    public function getStart(): string
41
    {
42 4
        return $this->start;
43
    }
44
45
    /**
46
     * @return string
47
     */
48 4
    public function getEnd(): string
49
    {
50 4
        return $this->end;
51
    }
52
53
    /**
54
     * @return bool
55
     */
56 4
    public function isReprocess(): bool
57
    {
58 4
        return $this->isReprocess === true;
59
    }
60
}