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\JoinColumn; |
12
|
|
|
use Doctrine\ORM\Mapping\ManyToOne; |
13
|
|
|
use Doctrine\ORM\Mapping\Table; |
14
|
|
|
use Override; |
|
|
|
|
15
|
|
|
use Stu\Orm\Repository\KnCharacterRepository; |
16
|
|
|
|
17
|
|
|
#[Table(name: "stu_kn_character")] |
18
|
|
|
#[Entity(repositoryClass: KnCharacterRepository::class)] |
19
|
|
|
class KnCharacter implements KnCharacterInterface |
20
|
|
|
{ |
21
|
|
|
#[Id] |
22
|
|
|
#[Column(type: "integer")] |
23
|
|
|
#[GeneratedValue(strategy: "IDENTITY")] |
24
|
|
|
private int $id; |
25
|
|
|
|
26
|
|
|
#[Column(name: "kn_id", type: "integer")] |
27
|
|
|
private int $knId; |
28
|
|
|
|
29
|
|
|
#[Column(name: "character_id", type: "integer")] |
30
|
|
|
private int $characterId; |
31
|
|
|
|
32
|
|
|
#[ManyToOne(targetEntity: "KnPost")] |
33
|
|
|
#[JoinColumn(name: "kn_id", referencedColumnName: "id", onDelete: "CASCADE")] |
34
|
|
|
private KnPostInterface $knPost; |
35
|
|
|
|
36
|
|
|
#[ManyToOne(targetEntity: "UserCharacter")] |
37
|
|
|
#[JoinColumn(name: "character_id", referencedColumnName: "id", onDelete: "CASCADE")] |
38
|
|
|
private UserCharacterInterface $userCharacters; |
39
|
|
|
|
40
|
|
|
|
41
|
|
|
#[Override] |
42
|
|
|
public function getId(): int |
43
|
|
|
{ |
44
|
|
|
return $this->id; |
45
|
|
|
} |
46
|
|
|
|
47
|
|
|
#[Override] |
48
|
|
|
public function getKnId(): int |
49
|
|
|
{ |
50
|
|
|
return $this->knId; |
51
|
|
|
} |
52
|
|
|
|
53
|
|
|
#[Override] |
54
|
|
|
public function setKnId(int $knId): KnCharacterInterface |
55
|
|
|
{ |
56
|
|
|
$this->knId = $knId; |
57
|
|
|
return $this; |
58
|
|
|
} |
59
|
|
|
|
60
|
|
|
#[Override] |
61
|
|
|
public function getCharacterId(): int |
62
|
|
|
{ |
63
|
|
|
return $this->characterId; |
64
|
|
|
} |
65
|
|
|
|
66
|
|
|
#[Override] |
67
|
|
|
public function setCharacterId(int $characterId): KnCharacterInterface |
68
|
|
|
{ |
69
|
|
|
$this->characterId = $characterId; |
70
|
|
|
return $this; |
71
|
|
|
} |
72
|
|
|
|
73
|
|
|
#[Override] |
74
|
|
|
public function getKnPost(): KnPostInterface |
75
|
|
|
{ |
76
|
|
|
return $this->knPost; |
77
|
|
|
} |
78
|
|
|
|
79
|
|
|
#[Override] |
80
|
|
|
public function setKnPost(KnPostInterface $knPost): KnCharacterInterface |
81
|
|
|
{ |
82
|
|
|
$this->knPost = $knPost; |
83
|
|
|
return $this; |
84
|
|
|
} |
85
|
|
|
|
86
|
|
|
#[Override] |
87
|
|
|
public function getUserCharacter(): UserCharacterInterface |
88
|
|
|
{ |
89
|
|
|
return $this->userCharacters; |
90
|
|
|
} |
91
|
|
|
|
92
|
|
|
#[Override] |
93
|
|
|
public function setUserCharacter(UserCharacterInterface $userCharacters): KnCharacterInterface |
94
|
|
|
{ |
95
|
|
|
$this->userCharacters = $userCharacters; |
96
|
|
|
return $this; |
97
|
|
|
} |
98
|
|
|
} |
99
|
|
|
|
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