1 | <?php |
||
2 | |||
3 | namespace Loevgaard\DandomainFoundation\Entity; |
||
4 | |||
5 | use Doctrine\Common\Collections\ArrayCollection; |
||
6 | use Doctrine\ORM\Mapping as ORM; |
||
7 | use Loevgaard\DandomainFoundation\Entity\Generated\VariantInterface; |
||
0 ignored issues
–
show
|
|||
8 | use Loevgaard\DandomainFoundation\Entity\Generated\VariantTrait; |
||
0 ignored issues
–
show
The type
Loevgaard\DandomainFound...\Generated\VariantTrait was not found. Maybe you did not declare it correctly or list all dependencies?
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. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths ![]() |
|||
9 | |||
10 | /** |
||
11 | * @ORM\Entity() |
||
12 | * @ORM\Table(name="ldf_variants") |
||
13 | */ |
||
14 | class Variant extends AbstractEntity implements VariantInterface |
||
15 | { |
||
16 | use VariantTrait; |
||
17 | |||
18 | /** |
||
19 | * @var int |
||
20 | * |
||
21 | * @ORM\Id |
||
22 | * @ORM\GeneratedValue |
||
23 | * @ORM\Column(type="integer") |
||
24 | **/ |
||
25 | protected $id; |
||
26 | |||
27 | /** |
||
28 | * @var int |
||
29 | * |
||
30 | * @ORM\Column(type="integer", unique=true) |
||
31 | */ |
||
32 | protected $externalId; |
||
33 | |||
34 | /** |
||
35 | * @var int|null |
||
36 | * |
||
37 | * @ORM\Column(nullable=true, type="integer") |
||
38 | */ |
||
39 | protected $sortOrder; |
||
40 | |||
41 | /** |
||
42 | * @var string|null |
||
43 | * |
||
44 | * @ORM\Column(nullable=true, type="string", length=191) |
||
45 | */ |
||
46 | protected $text; |
||
47 | |||
48 | /** |
||
49 | * @var Product[]|ArrayCollection |
||
50 | * |
||
51 | * @ORM\ManyToMany(mappedBy="disabledVariants", targetEntity="Product") |
||
52 | */ |
||
53 | protected $disabledProducts; |
||
54 | |||
55 | /** |
||
56 | * @var Product[]|ArrayCollection |
||
57 | * |
||
58 | * @ORM\ManyToMany(mappedBy="variants", targetEntity="Product") |
||
59 | */ |
||
60 | protected $products; |
||
61 | |||
62 | /** |
||
63 | * @var VariantGroup[]|ArrayCollection |
||
64 | * |
||
65 | * @ORM\ManyToMany(mappedBy="variants", targetEntity="VariantGroup") |
||
66 | */ |
||
67 | protected $variantGroups; |
||
68 | |||
69 | public function __construct() |
||
70 | { |
||
71 | $this->disabledProducts = new ArrayCollection(); |
||
72 | $this->products = new ArrayCollection(); |
||
73 | $this->variantGroups = new ArrayCollection(); |
||
74 | } |
||
75 | |||
76 | /** |
||
77 | * @return int |
||
78 | */ |
||
79 | public function getId(): int |
||
80 | { |
||
81 | return (int) $this->id; |
||
82 | } |
||
83 | |||
84 | /** |
||
85 | * @param int $id |
||
86 | * |
||
87 | * @return VariantInterface |
||
88 | */ |
||
89 | public function setId(int $id) |
||
90 | { |
||
91 | $this->id = $id; |
||
92 | |||
93 | return $this; |
||
94 | } |
||
95 | |||
96 | /** |
||
97 | * @return int |
||
98 | */ |
||
99 | public function getExternalId(): int |
||
100 | { |
||
101 | return (int) $this->externalId; |
||
102 | } |
||
103 | |||
104 | /** |
||
105 | * @param int $externalId |
||
106 | * |
||
107 | * @return VariantInterface |
||
108 | */ |
||
109 | public function setExternalId(int $externalId) |
||
110 | { |
||
111 | $this->externalId = $externalId; |
||
112 | |||
113 | return $this; |
||
114 | } |
||
115 | |||
116 | /** |
||
117 | * @return int|null |
||
118 | */ |
||
119 | public function getSortOrder() |
||
120 | { |
||
121 | return $this->sortOrder; |
||
122 | } |
||
123 | |||
124 | /** |
||
125 | * @param int|null $sortOrder |
||
126 | * |
||
127 | * @return VariantInterface |
||
128 | */ |
||
129 | public function setSortOrder($sortOrder) |
||
130 | { |
||
131 | $this->sortOrder = $sortOrder; |
||
132 | |||
133 | return $this; |
||
134 | } |
||
135 | |||
136 | /** |
||
137 | * @return null|string |
||
138 | */ |
||
139 | public function getText() |
||
140 | { |
||
141 | return $this->text; |
||
142 | } |
||
143 | |||
144 | /** |
||
145 | * @param null|string $text |
||
146 | * |
||
147 | * @return VariantInterface |
||
148 | */ |
||
149 | public function setText($text) |
||
150 | { |
||
151 | $this->text = $text; |
||
152 | |||
153 | return $this; |
||
154 | } |
||
155 | |||
156 | /** |
||
157 | * @return ArrayCollection|Product[] |
||
158 | */ |
||
159 | public function getDisabledProducts() |
||
160 | { |
||
161 | return $this->disabledProducts; |
||
162 | } |
||
163 | |||
164 | /** |
||
165 | * @param ArrayCollection|Product[] $disabledProducts |
||
166 | * |
||
167 | * @return VariantInterface |
||
168 | */ |
||
169 | public function setDisabledProducts($disabledProducts) |
||
170 | { |
||
171 | $this->disabledProducts = $disabledProducts; |
||
172 | |||
173 | return $this; |
||
174 | } |
||
175 | |||
176 | /** |
||
177 | * @return ArrayCollection|Product[] |
||
178 | */ |
||
179 | public function getProducts() |
||
180 | { |
||
181 | return $this->products; |
||
182 | } |
||
183 | |||
184 | /** |
||
185 | * @param ArrayCollection|Product[] $products |
||
186 | * |
||
187 | * @return VariantInterface |
||
188 | */ |
||
189 | public function setProducts($products) |
||
190 | { |
||
191 | $this->products = $products; |
||
192 | |||
193 | return $this; |
||
194 | } |
||
195 | |||
196 | /** |
||
197 | * @return ArrayCollection|VariantGroup[] |
||
198 | */ |
||
199 | public function getVariantGroups() |
||
200 | { |
||
201 | return $this->variantGroups; |
||
202 | } |
||
203 | |||
204 | /** |
||
205 | * @param ArrayCollection|VariantGroup[] $variantGroups |
||
206 | * |
||
207 | * @return VariantInterface |
||
208 | */ |
||
209 | public function setVariantGroups($variantGroups) |
||
210 | { |
||
211 | $this->variantGroups = $variantGroups; |
||
212 | |||
213 | return $this; |
||
214 | } |
||
215 | } |
||
216 |
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