Passed
Push — dev ( 8f57e5...937521 )
by Nico
05:59
created

OpenedAdventDoor::setMonth()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
eloc 2
c 0
b 0
f 0
nc 1
nop 1
dl 0
loc 5
ccs 3
cts 3
cp 1
crap 1
rs 10
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Stu\Orm\Entity;
6
7
use Doctrine\ORM\Mapping\Column;
8
use Doctrine\ORM\Mapping\Entity;
9
use Doctrine\ORM\Mapping\GeneratedValue;
10
use Doctrine\ORM\Mapping\Id;
11
use Doctrine\ORM\Mapping\Table;
12
use Stu\Orm\Attribute\TruncateOnGameReset;
13
use Stu\Orm\Repository\OpenedAdventDoorRepository;
14
15
#[Table(name: 'stu_opened_advent_door')]
16
#[Entity(repositoryClass: OpenedAdventDoorRepository::class)]
17
#[TruncateOnGameReset]
18
class OpenedAdventDoor
19
{
20
    #[Id]
21
    #[Column(type: 'integer')]
22
    #[GeneratedValue(strategy: 'IDENTITY')]
23
    private int $id;
24
25
    #[Column(type: 'integer')]
26
    private int $user_id;
27
28
    #[Column(type: 'integer')]
29
    private int $day;
30
31
    #[Column(type: 'integer')]
32
    private int $month;
33
34
    #[Column(type: 'integer')]
35
    private int $year;
36
37
    #[Column(type: 'integer')]
38
    private int $time;
39
40
41
    public function getId(): int
42
    {
43
        return $this->id;
44
    }
45
46 2
    public function setUserId(int $userId): OpenedAdventDoor
47
    {
48 2
        $this->user_id = $userId;
49
50 2
        return $this;
51
    }
52
53 2
    public function setDay(int $day): OpenedAdventDoor
54
    {
55 2
        $this->day = $day;
56
57 2
        return $this;
58
    }
59
60 2
    public function setMonth(int $month): OpenedAdventDoor
61
    {
62 2
        $this->month = $month;
63
64 2
        return $this;
65
    }
66
67 2
    public function setYear(int $year): OpenedAdventDoor
68
    {
69 2
        $this->year = $year;
70
71 2
        return $this;
72
    }
73 2
    public function setTime(int $time): OpenedAdventDoor
74
    {
75 2
        $this->time = $time;
76
77 2
        return $this;
78
    }
79
}
80