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 Override; |
|
|
|
|
13
|
|
|
use Stu\Orm\Repository\NPCLogRepository; |
14
|
|
|
|
15
|
|
|
#[Table(name: 'stu_npc_log')] |
16
|
|
|
#[Entity(repositoryClass: NPCLogRepository::class)] |
17
|
|
|
class NPCLog implements NPCLogInterface |
18
|
|
|
{ |
19
|
|
|
#[Id] |
20
|
|
|
#[Column(type: 'integer')] |
21
|
|
|
#[GeneratedValue(strategy: 'IDENTITY')] |
22
|
|
|
private int $id; |
23
|
|
|
|
24
|
|
|
#[Column(type: 'text')] |
25
|
|
|
private string $text = ''; |
26
|
|
|
|
27
|
|
|
#[Column(type: 'integer')] |
28
|
|
|
private int $date = 0; |
29
|
|
|
|
30
|
|
|
#[Column(type: 'integer', nullable: true)] |
31
|
|
|
private ?int $source_user_id = 0; |
32
|
|
|
|
33
|
|
|
#[Column(type: 'integer', nullable: true)] |
34
|
|
|
private ?int $faction_id = null; |
35
|
|
|
|
36
|
|
|
|
37
|
|
|
|
38
|
|
|
#[Override] |
39
|
|
|
public function getId(): int |
40
|
|
|
{ |
41
|
|
|
return $this->id; |
42
|
|
|
} |
43
|
|
|
|
44
|
|
|
#[Override] |
45
|
|
|
public function getText(): string |
46
|
|
|
{ |
47
|
|
|
return $this->text; |
48
|
|
|
} |
49
|
|
|
|
50
|
|
|
#[Override] |
51
|
|
|
public function setText(string $text): NPCLogInterface |
52
|
|
|
{ |
53
|
|
|
$this->text = $text; |
54
|
|
|
|
55
|
|
|
return $this; |
56
|
|
|
} |
57
|
|
|
|
58
|
|
|
#[Override] |
59
|
|
|
public function getDate(): int |
60
|
|
|
{ |
61
|
|
|
return $this->date; |
62
|
|
|
} |
63
|
|
|
|
64
|
|
|
#[Override] |
65
|
|
|
public function setDate(int $date): NPCLogInterface |
66
|
|
|
{ |
67
|
|
|
$this->date = $date; |
68
|
|
|
|
69
|
|
|
return $this; |
70
|
|
|
} |
71
|
|
|
|
72
|
|
|
#[Override] |
73
|
|
|
public function getSourceUserId(): ?int |
74
|
|
|
{ |
75
|
|
|
return $this->source_user_id; |
76
|
|
|
} |
77
|
|
|
|
78
|
|
|
#[Override] |
79
|
|
|
public function setSourceUserId(int $sourceuserId): NPCLogInterface |
80
|
|
|
{ |
81
|
|
|
$this->source_user_id = $sourceuserId; |
82
|
|
|
|
83
|
|
|
return $this; |
84
|
|
|
} |
85
|
|
|
|
86
|
|
|
#[Override] |
87
|
|
|
public function getFactionId(): ?int |
88
|
|
|
{ |
89
|
|
|
return $this->faction_id; |
90
|
|
|
} |
91
|
|
|
|
92
|
|
|
#[Override] |
93
|
|
|
public function setFactionId(?int $factionId): NPCLogInterface |
94
|
|
|
{ |
95
|
|
|
$this->faction_id = $factionId; |
96
|
|
|
|
97
|
|
|
return $this; |
98
|
|
|
} |
99
|
|
|
} |
100
|
|
|
|
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"]
, you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths