Tournament::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 Tournament
7
 *
8
 * @package MauroMoreno\DataFactory\Entity
9
 */
10
class Tournament
11
{
12
13
    /**
14
     * @var int
15
     */
16
    public $id;
17
18
    /**
19
     * @var string
20
     */
21
    public $channel;
22
23
    /**
24
     * @var string
25
     */
26
    public $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 Tournament
40
     */
41 3
    public function setId(int $id): Tournament
42
    {
43 3
        $this->id = $id;
44 3
        return $this;
45
    }
46
47
    /**
48
     * @return string
49
     */
50 1
    public function getValue(): string
51
    {
52 1
        return $this->value;
53
    }
54
55
    /**
56
     * @param string $value
57
     *
58
     * @return Tournament
59
     */
60 3
    public function setValue(string $value): Tournament
61
    {
62 3
        $this->value = $value;
63 3
        return $this;
64
    }
65
66
}
67