Completed
Push — master ( 830035...536df1 )
by Mauro
02:22
created

Status::setId()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 5
ccs 0
cts 5
cp 0
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 3
nc 1
nop 1
crap 2
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
    public function getId(): int
27
    {
28
        return $this->id;
29
    }
30
31
    /**
32
     * @param int $id
33
     *
34
     * @return Status
35
     */
36
    public function setId(int $id): Status
37
    {
38
        $this->id = $id;
39
        return $this;
40
    }
41
42
    /**
43
     * @return string
44
     */
45
    public function getValue(): string
46
    {
47
        return $this->value;
48
    }
49
50
    /**
51
     * @param string $value
52
     *
53
     * @return Status
54
     */
55
    public function setValue(string $value): Status
56
    {
57
        $this->value = $value;
58
        return $this;
59
    }
60
61
}
62