Category::setValue()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 5
ccs 3
cts 3
cp 1
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
crap 1
1
<?php
2
3
namespace MauroMoreno\DataFactory\Entity;
4
5
/**
6
 * Class Category
7
 *
8
 * @package MauroMoreno\DataFactory\Entity
9
 */
10
class Category
11
{
12
13
    /**
14
     * @var int
15
     */
16
    private $id;
17
18
    /**
19
     * @var string
20
     */
21
    private $channel;
22
23
    /**
24
     * @var string
25
     */
26
    private $value;
27
28
    /**
29
     * @return int
30
     */
31 1
    public function getId(): int
32
    {
33 1
        return $this->id;
34
    }
35
36
    /**
37
     * @param int $id
38
     *
39
     * @return Category
40
     */
41 3
    public function setId(int $id): Category
42
    {
43 3
        $this->id = $id;
44 3
        return $this;
45
    }
46
47
    /**
48
     * @return string
49
     */
50 1
    public function getChannel(): string
51
    {
52 1
        return $this->channel;
53
    }
54
55
    /**
56
     * @param string $channel
57
     *
58
     * @return Category
59
     */
60 1
    public function setChannel(string $channel): Category
61
    {
62 1
        $this->channel = $channel;
63 1
        return $this;
64
    }
65
66
    /**
67
     * @return string
68
     */
69 1
    public function getValue(): string
70
    {
71 1
        return $this->value;
72
    }
73
74
    /**
75
     * @param string $value
76
     *
77
     * @return Category
78
     */
79 3
    public function setValue(string $value): Category
80
    {
81 3
        $this->value = $value;
82 3
        return $this;
83
    }
84
85
}
86