Status::getId()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
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 MauroMoreno\DataFactory\Entity;
4
5
/**
6
 * Class Status
7
 *
8
 * @package MauroMoreno\DataFactory\Entity
9
 */
10
class Status
11
{
12
13
    /**
14
     * @var int
15
     */
16
    private $id;
17
18
    /**
19
     * @var string
20
     */
21
    private $value;
22
23
    /**
24
     * @return int
25
     */
26 1
    public function getId(): int
27
    {
28 1
        return $this->id;
29
    }
30
31
    /**
32
     * @param int $id
33
     *
34
     * @return Status
35
     */
36 3
    public function setId(int $id): Status
37
    {
38 3
        $this->id = $id;
39 3
        return $this;
40
    }
41
42
    /**
43
     * @return string
44
     */
45 1
    public function getValue(): string
46
    {
47 1
        return $this->value;
48
    }
49
50
    /**
51
     * @param string $value
52
     *
53
     * @return Status
54
     */
55 3
    public function setValue(string $value): Status
56
    {
57 3
        $this->value = $value;
58 3
        return $this;
59
    }
60
61
}
62