| Total Complexity | 6 |
| Total Lines | 63 |
| Duplicated Lines | 0 % |
| Coverage | 88.24% |
| Changes | 0 | ||
| 1 | <?php |
||
| 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 |
|
| 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 |
|
| 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 |
|
| 78 | } |
||
| 79 | } |
||
| 80 |