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\ManufacturerInterface; |
||
0 ignored issues
–
show
|
|||
8 | use Loevgaard\DandomainFoundation\Entity\Generated\ManufacturerTrait; |
||
0 ignored issues
–
show
The type
Loevgaard\DandomainFound...rated\ManufacturerTrait 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_manufacturers") |
||
13 | */ |
||
14 | class Manufacturer extends AbstractEntity implements ManufacturerInterface |
||
15 | { |
||
16 | use ManufacturerTrait; |
||
17 | |||
18 | protected $hydrateConversions = [ |
||
19 | 'id' => 'externalId', |
||
20 | ]; |
||
21 | |||
22 | /** |
||
23 | * @var int |
||
24 | * |
||
25 | * @ORM\Id |
||
26 | * @ORM\GeneratedValue |
||
27 | * @ORM\Column(type="integer") |
||
28 | **/ |
||
29 | protected $id; |
||
30 | |||
31 | /** |
||
32 | * @var string |
||
33 | * |
||
34 | * @ORM\Column(type="string", unique=true, length=191) |
||
35 | */ |
||
36 | protected $externalId; |
||
37 | |||
38 | /** |
||
39 | * @var string|null |
||
40 | * |
||
41 | * @ORM\Column(nullable=true, type="string", length=191) |
||
42 | */ |
||
43 | protected $link; |
||
44 | |||
45 | /** |
||
46 | * @var string|null |
||
47 | * |
||
48 | * @ORM\Column(nullable=true, type="text") |
||
49 | */ |
||
50 | protected $linkText; |
||
51 | |||
52 | /** |
||
53 | * @var string|null |
||
54 | * |
||
55 | * @ORM\Column(nullable=true, type="string", length=191) |
||
56 | */ |
||
57 | protected $name; |
||
58 | |||
59 | /** |
||
60 | * @var Product[]|ArrayCollection |
||
61 | * |
||
62 | * @ORM\ManyToMany(mappedBy="manufacturers", targetEntity="Product", fetch="EXTRA_LAZY") |
||
63 | */ |
||
64 | protected $products; |
||
65 | |||
66 | 9 | public function __construct() |
|
67 | { |
||
68 | 9 | $this->products = new ArrayCollection(); |
|
69 | 9 | } |
|
70 | |||
71 | public function __toString() |
||
72 | { |
||
73 | return (string) $this->name; |
||
74 | } |
||
75 | |||
76 | 4 | /** |
|
77 | * @return int |
||
78 | 4 | */ |
|
79 | 2 | public function getId(): int |
|
80 | { |
||
81 | 2 | return (int) $this->id; |
|
82 | } |
||
83 | |||
84 | 2 | /** |
|
85 | * @param int $id |
||
86 | 2 | * |
|
87 | * @return ManufacturerInterface |
||
88 | 2 | */ |
|
89 | 1 | public function setId(int $id) |
|
90 | { |
||
91 | 5 | $this->id = $id; |
|
92 | |||
93 | 5 | return $this; |
|
94 | } |
||
95 | |||
96 | /** |
||
97 | * @return string |
||
98 | */ |
||
99 | 4 | public function getExternalId(): string |
|
100 | { |
||
101 | 4 | return (string) $this->externalId; |
|
102 | } |
||
103 | 2 | ||
104 | /** |
||
105 | * @param string $externalId |
||
106 | * |
||
107 | * @return ManufacturerInterface |
||
108 | */ |
||
109 | 3 | public function setExternalId(string $externalId) |
|
110 | { |
||
111 | 3 | $this->externalId = $externalId; |
|
112 | |||
113 | 1 | return $this; |
|
114 | } |
||
115 | |||
116 | /** |
||
117 | * @return null|string |
||
118 | */ |
||
119 | 3 | public function getLink() |
|
120 | { |
||
121 | 3 | return $this->link; |
|
122 | } |
||
123 | 2 | ||
124 | /** |
||
125 | * @param null|string $link |
||
126 | * |
||
127 | * @return ManufacturerInterface |
||
128 | */ |
||
129 | 3 | public function setLink($link) |
|
130 | { |
||
131 | 3 | $this->link = $link; |
|
132 | |||
133 | 1 | return $this; |
|
134 | } |
||
135 | |||
136 | /** |
||
137 | * @return null|string |
||
138 | */ |
||
139 | 3 | public function getLinkText() |
|
140 | { |
||
141 | 3 | return $this->linkText; |
|
142 | } |
||
143 | 2 | ||
144 | /** |
||
145 | * @param null|string $linkText |
||
146 | * |
||
147 | * @return ManufacturerInterface |
||
148 | */ |
||
149 | 3 | public function setLinkText($linkText) |
|
150 | { |
||
151 | 3 | $this->linkText = $linkText; |
|
152 | |||
153 | 1 | return $this; |
|
154 | } |
||
155 | |||
156 | /** |
||
157 | * @return null|string |
||
158 | */ |
||
159 | 3 | public function getName() |
|
160 | { |
||
161 | 3 | return $this->name; |
|
162 | } |
||
163 | 2 | ||
164 | /** |
||
165 | * @param null|string $name |
||
166 | * |
||
167 | * @return ManufacturerInterface |
||
168 | */ |
||
169 | 3 | public function setName($name) |
|
170 | { |
||
171 | 3 | $this->name = $name; |
|
172 | |||
173 | 1 | return $this; |
|
174 | } |
||
175 | |||
176 | /** |
||
177 | * @return ArrayCollection|Product[] |
||
178 | */ |
||
179 | 3 | public function getProducts() |
|
180 | { |
||
181 | 3 | return $this->products; |
|
182 | } |
||
183 | 2 | ||
184 | /** |
||
185 | * @param ArrayCollection|Product[] $products |
||
186 | * |
||
187 | * @return ManufacturerInterface |
||
188 | */ |
||
189 | 1 | public function setProducts($products) |
|
190 | { |
||
191 | 1 | $this->products = $products; |
|
192 | |||
193 | 1 | return $this; |
|
194 | } |
||
195 | } |
||
196 |
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