Process   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 53
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 4
eloc 10
dl 0
loc 53
ccs 11
cts 11
cp 1
rs 10
c 0
b 0
f 0

4 Methods

Rating   Name   Duplication   Size   Complexity  
A getEnd() 0 3 1
A getStart() 0 3 1
A isReprocess() 0 3 1
A __construct() 0 5 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
}