Passed
Push — master ( 974e99...dba8b5 )
by
unknown
01:09 queued 11s
created

Player::setId()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 6
rs 10
c 0
b 0
f 0
cc 1
nc 1
nop 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace MovingImage\Client\VMPro\Entity;
6
7
use JMS\Serializer\Annotation\Type;
8
9
class Player
10
{
11
    /** @Type("string") */
12
    private $id;
13
14
    /** @Type("string") */
15
    private $name;
16
17
    /** @Type("boolean") */
18
    private $active = false;
19
20
    public function getId(): ?string
21
    {
22
        return $this->id;
23
    }
24
25
    public function setId(string $id): self
26
    {
27
        $this->id = $id;
28
29
        return $this;
30
    }
31
32
    public function getName(): ?string
33
    {
34
        return $this->name;
35
    }
36
37
    public function setName(?string $name): self
38
    {
39
        $this->name = $name;
40
41
        return $this;
42
    }
43
44
    public function isActive(): bool
45
    {
46
        return $this->active;
47
    }
48
49
    public function setActive(bool $active): self
50
    {
51
        $this->active = $active;
52
53
        return $this;
54
    }
55
}
56