IncidencePlayer::setId()   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 IncidencePlayer
7
 *
8
 * @package MauroMoreno\DataFactory\Entity
9
 */
10
class IncidencePlayer
11
{
12
13
    /**
14
     * @var int
15
     */
16
    private $id;
17
18
    /**
19
     * @var string
20
     */
21
    private $name;
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 IncidencePlayer
35
     */
36 2
    public function setId(int $id): IncidencePlayer
37
    {
38 2
        $this->id = $id;
39 2
        return $this;
40
    }
41
42
    /**
43
     * @return string
44
     */
45 1
    public function getName(): string
46
    {
47 1
        return $this->name;
48
    }
49
50
    /**
51
     * @param string $name
52
     *
53
     * @return IncidencePlayer
54
     */
55 2
    public function setName(string $name): IncidencePlayer
56
    {
57 2
        $this->name = $name;
58 2
        return $this;
59
    }
60
61
}
62