1 | <?php |
||
2 | |||
3 | namespace Loevgaard\DandomainFoundation\Entity; |
||
4 | |||
5 | use Doctrine\ORM\Mapping as ORM; |
||
6 | use Loevgaard\DandomainFoundation\Entity\Generated\CustomerInterface; |
||
0 ignored issues
–
show
|
|||
7 | use Loevgaard\DandomainFoundation\Entity\Generated\CustomerTrait; |
||
0 ignored issues
–
show
The type
Loevgaard\DandomainFound...Generated\CustomerTrait 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 ![]() |
|||
8 | |||
9 | /** |
||
10 | * @ORM\Entity() |
||
11 | * @ORM\Table(name="ldf_customers") |
||
12 | * |
||
13 | * @todo missing properties, see http://4221117.shop53.dandomain.dk/admin/webapi/endpoints/v1_0/CustomerService/help/operations/GetCustomer |
||
14 | */ |
||
15 | class Customer extends AbstractEntity implements CustomerInterface |
||
16 | { |
||
17 | use CustomerTrait; |
||
18 | |||
19 | /** |
||
20 | * @var int |
||
21 | * |
||
22 | * @ORM\Id |
||
23 | * @ORM\GeneratedValue |
||
24 | * @ORM\Column(type="integer") |
||
25 | **/ |
||
26 | protected $id; |
||
27 | |||
28 | /** |
||
29 | * This is the customer id in Dandomain. |
||
30 | * |
||
31 | * @var int |
||
32 | * |
||
33 | * @ORM\Column(type="integer", unique=true) |
||
34 | */ |
||
35 | protected $externalId; |
||
36 | |||
37 | /** |
||
38 | * @var string|null |
||
39 | * |
||
40 | * @ORM\Column(nullable=true, type="string", length=191) |
||
41 | */ |
||
42 | protected $address; |
||
43 | |||
44 | /** |
||
45 | * @var string|null |
||
46 | * |
||
47 | * @ORM\Column(nullable=true, type="string", length=191) |
||
48 | */ |
||
49 | protected $address2; |
||
50 | |||
51 | /** |
||
52 | * @var string|null |
||
53 | * |
||
54 | * @ORM\Column(nullable=true, type="string", length=191) |
||
55 | */ |
||
56 | protected $attention; |
||
57 | |||
58 | /** |
||
59 | * @var string|null |
||
60 | * |
||
61 | * @ORM\Column(nullable=true, type="string", length=191) |
||
62 | */ |
||
63 | protected $city; |
||
64 | |||
65 | /** |
||
66 | * @var string|null |
||
67 | * |
||
68 | * @ORM\Column(nullable=true, type="string", length=191) |
||
69 | */ |
||
70 | protected $country; |
||
71 | |||
72 | /** |
||
73 | * @var int|null |
||
74 | * |
||
75 | * @ORM\Column(nullable=true, type="integer") |
||
76 | */ |
||
77 | protected $countryId; |
||
78 | |||
79 | /** |
||
80 | * @var string|null |
||
81 | * |
||
82 | * @ORM\Column(nullable=true, type="string", length=191) |
||
83 | */ |
||
84 | protected $ean; |
||
85 | |||
86 | /** |
||
87 | * @var string|null |
||
88 | * |
||
89 | * @ORM\Column(nullable=true, type="string", length=191) |
||
90 | */ |
||
91 | protected $email; |
||
92 | |||
93 | /** |
||
94 | * @var string|null |
||
95 | * |
||
96 | * @ORM\Column(nullable=true, type="string", length=191) |
||
97 | */ |
||
98 | protected $fax; |
||
99 | |||
100 | /** |
||
101 | * @var string|null |
||
102 | * |
||
103 | * @ORM\Column(nullable=true, type="string", length=191) |
||
104 | */ |
||
105 | protected $name; |
||
106 | |||
107 | /** |
||
108 | * @var string|null |
||
109 | * |
||
110 | * @ORM\Column(nullable=true, type="string", length=191) |
||
111 | */ |
||
112 | protected $phone; |
||
113 | |||
114 | /** |
||
115 | * @var string|null |
||
116 | * |
||
117 | * @ORM\Column(nullable=true, type="string", length=191) |
||
118 | */ |
||
119 | protected $state; |
||
120 | |||
121 | /** |
||
122 | * @var string|null |
||
123 | * |
||
124 | * @ORM\Column(nullable=true, type="string", length=191) |
||
125 | */ |
||
126 | protected $zipCode; |
||
127 | |||
128 | /** |
||
129 | * @var string|null |
||
130 | * |
||
131 | * @ORM\Column(nullable=true, type="string", length=191) |
||
132 | */ |
||
133 | protected $cvr; |
||
134 | |||
135 | /** |
||
136 | * @var string|null |
||
137 | * |
||
138 | * @ORM\Column(nullable=true, type="string", length=191) |
||
139 | */ |
||
140 | protected $b2bGroupId; |
||
141 | |||
142 | /** |
||
143 | * @var string|null |
||
144 | * |
||
145 | * @ORM\Column(nullable=true, type="text") |
||
146 | */ |
||
147 | protected $comments; |
||
148 | |||
149 | /** |
||
150 | * @var \DateTimeImmutable|null |
||
151 | * |
||
152 | * @ORM\Column(nullable=true, type="datetime_immutable") |
||
153 | */ |
||
154 | protected $createdDate; |
||
155 | |||
156 | /** |
||
157 | * @var string|null |
||
158 | * |
||
159 | * @ORM\Column(nullable=true, type="string", length=191) |
||
160 | */ |
||
161 | protected $customerGroupId; |
||
162 | |||
163 | /** |
||
164 | * @var string|null |
||
165 | * |
||
166 | * @ORM\Column(nullable=true, type="string", length=191) |
||
167 | */ |
||
168 | protected $customerType; |
||
169 | |||
170 | /** |
||
171 | * @var bool|null |
||
172 | * |
||
173 | * @ORM\Column(nullable=true, type="boolean") |
||
174 | */ |
||
175 | protected $b2b; |
||
176 | |||
177 | /** |
||
178 | * @var \DateTimeImmutable|null |
||
179 | * |
||
180 | * @ORM\Column(nullable=true, type="datetime_immutable") |
||
181 | */ |
||
182 | protected $lastLoginDate; |
||
183 | |||
184 | /** |
||
185 | * @var int|null |
||
186 | * |
||
187 | * @ORM\Column(nullable=true, type="integer") |
||
188 | */ |
||
189 | protected $loginCount; |
||
190 | |||
191 | /** |
||
192 | * @var string|null |
||
193 | * |
||
194 | * @ORM\Column(nullable=true, type="string", length=191) |
||
195 | */ |
||
196 | protected $password; |
||
197 | |||
198 | /** |
||
199 | * @var string|null |
||
200 | * |
||
201 | * @ORM\Column(nullable=true, type="string", length=191) |
||
202 | */ |
||
203 | protected $reservedField1; |
||
204 | |||
205 | /** |
||
206 | * @var string|null |
||
207 | * |
||
208 | * @ORM\Column(nullable=true, type="string", length=191) |
||
209 | */ |
||
210 | protected $reservedField2; |
||
211 | |||
212 | /** |
||
213 | * @var string|null |
||
214 | * |
||
215 | * @ORM\Column(nullable=true, type="string", length=191) |
||
216 | */ |
||
217 | protected $reservedField3; |
||
218 | |||
219 | /** |
||
220 | * @var string|null |
||
221 | * |
||
222 | * @ORM\Column(nullable=true, type="string", length=191) |
||
223 | */ |
||
224 | protected $reservedField4; |
||
225 | |||
226 | /** |
||
227 | * @var string|null |
||
228 | * |
||
229 | * @ORM\Column(nullable=true, type="string", length=191) |
||
230 | */ |
||
231 | protected $reservedField5; |
||
232 | |||
233 | /** |
||
234 | * @return int |
||
235 | */ |
||
236 | public function getId(): int |
||
237 | { |
||
238 | return (int) $this->id; |
||
239 | } |
||
240 | |||
241 | /** |
||
242 | * @param int $id |
||
243 | * |
||
244 | * @return CustomerInterface |
||
245 | */ |
||
246 | public function setId($id) |
||
247 | { |
||
248 | $this->id = $id; |
||
249 | |||
250 | return $this; |
||
251 | } |
||
252 | |||
253 | /** |
||
254 | * @return int |
||
255 | */ |
||
256 | public function getExternalId(): int |
||
257 | { |
||
258 | return (int) $this->externalId; |
||
259 | } |
||
260 | |||
261 | /** |
||
262 | * @param int $externalId |
||
263 | * |
||
264 | * @return CustomerInterface |
||
265 | */ |
||
266 | public function setExternalId($externalId) |
||
267 | { |
||
268 | $this->externalId = $externalId; |
||
269 | |||
270 | return $this; |
||
271 | } |
||
272 | |||
273 | /** |
||
274 | * @return null|string |
||
275 | */ |
||
276 | public function getAddress() |
||
277 | { |
||
278 | return $this->address; |
||
279 | } |
||
280 | |||
281 | /** |
||
282 | * @param null|string $address |
||
283 | * |
||
284 | * @return CustomerInterface |
||
285 | */ |
||
286 | public function setAddress($address) |
||
287 | { |
||
288 | $this->address = $address; |
||
289 | |||
290 | return $this; |
||
291 | } |
||
292 | |||
293 | /** |
||
294 | * @return null|string |
||
295 | */ |
||
296 | public function getAddress2() |
||
297 | { |
||
298 | return $this->address2; |
||
299 | } |
||
300 | |||
301 | /** |
||
302 | * @param null|string $address2 |
||
303 | * |
||
304 | * @return CustomerInterface |
||
305 | */ |
||
306 | public function setAddress2($address2) |
||
307 | { |
||
308 | $this->address2 = $address2; |
||
309 | |||
310 | return $this; |
||
311 | } |
||
312 | |||
313 | /** |
||
314 | * @return null|string |
||
315 | */ |
||
316 | public function getAttention() |
||
317 | { |
||
318 | return $this->attention; |
||
319 | } |
||
320 | |||
321 | /** |
||
322 | * @param null|string $attention |
||
323 | * |
||
324 | * @return CustomerInterface |
||
325 | */ |
||
326 | public function setAttention($attention) |
||
327 | { |
||
328 | $this->attention = $attention; |
||
329 | |||
330 | return $this; |
||
331 | } |
||
332 | |||
333 | /** |
||
334 | * @return null|string |
||
335 | */ |
||
336 | public function getCity() |
||
337 | { |
||
338 | return $this->city; |
||
339 | } |
||
340 | |||
341 | /** |
||
342 | * @param null|string $city |
||
343 | * |
||
344 | * @return CustomerInterface |
||
345 | */ |
||
346 | public function setCity($city) |
||
347 | { |
||
348 | $this->city = $city; |
||
349 | |||
350 | return $this; |
||
351 | } |
||
352 | |||
353 | /** |
||
354 | * @return null|string |
||
355 | */ |
||
356 | public function getCountry() |
||
357 | { |
||
358 | return $this->country; |
||
359 | } |
||
360 | |||
361 | /** |
||
362 | * @param null|string $country |
||
363 | * |
||
364 | * @return CustomerInterface |
||
365 | */ |
||
366 | public function setCountry($country) |
||
367 | { |
||
368 | $this->country = $country; |
||
369 | |||
370 | return $this; |
||
371 | } |
||
372 | |||
373 | /** |
||
374 | * @return null|string |
||
375 | */ |
||
376 | public function getEan() |
||
377 | { |
||
378 | return $this->ean; |
||
379 | } |
||
380 | |||
381 | /** |
||
382 | * @param null|string $ean |
||
383 | * |
||
384 | * @return CustomerInterface |
||
385 | */ |
||
386 | public function setEan($ean) |
||
387 | { |
||
388 | $this->ean = $ean; |
||
389 | |||
390 | return $this; |
||
391 | } |
||
392 | |||
393 | /** |
||
394 | * @return null|string |
||
395 | */ |
||
396 | public function getEmail() |
||
397 | { |
||
398 | return $this->email; |
||
399 | } |
||
400 | |||
401 | /** |
||
402 | * @param null|string $email |
||
403 | * |
||
404 | * @return CustomerInterface |
||
405 | */ |
||
406 | public function setEmail($email) |
||
407 | { |
||
408 | $this->email = $email; |
||
409 | |||
410 | return $this; |
||
411 | } |
||
412 | |||
413 | /** |
||
414 | * @return null|string |
||
415 | */ |
||
416 | public function getFax() |
||
417 | { |
||
418 | return $this->fax; |
||
419 | } |
||
420 | |||
421 | /** |
||
422 | * @param null|string $fax |
||
423 | * |
||
424 | * @return CustomerInterface |
||
425 | */ |
||
426 | public function setFax($fax) |
||
427 | { |
||
428 | $this->fax = $fax; |
||
429 | |||
430 | return $this; |
||
431 | } |
||
432 | |||
433 | /** |
||
434 | * @return null|string |
||
435 | */ |
||
436 | public function getName() |
||
437 | { |
||
438 | return $this->name; |
||
439 | } |
||
440 | |||
441 | /** |
||
442 | * @param null|string $name |
||
443 | * |
||
444 | * @return CustomerInterface |
||
445 | */ |
||
446 | public function setName($name) |
||
447 | { |
||
448 | $this->name = $name; |
||
449 | |||
450 | return $this; |
||
451 | } |
||
452 | |||
453 | /** |
||
454 | * @return null|string |
||
455 | */ |
||
456 | public function getPhone() |
||
457 | { |
||
458 | return $this->phone; |
||
459 | } |
||
460 | |||
461 | /** |
||
462 | * @param null|string $phone |
||
463 | * |
||
464 | * @return CustomerInterface |
||
465 | */ |
||
466 | public function setPhone($phone) |
||
467 | { |
||
468 | $this->phone = $phone; |
||
469 | |||
470 | return $this; |
||
471 | } |
||
472 | |||
473 | /** |
||
474 | * @return null|string |
||
475 | */ |
||
476 | public function getState() |
||
477 | { |
||
478 | return $this->state; |
||
479 | } |
||
480 | |||
481 | /** |
||
482 | * @param null|string $state |
||
483 | * |
||
484 | * @return CustomerInterface |
||
485 | */ |
||
486 | public function setState($state) |
||
487 | { |
||
488 | $this->state = $state; |
||
489 | |||
490 | return $this; |
||
491 | } |
||
492 | |||
493 | /** |
||
494 | * @return null|string |
||
495 | */ |
||
496 | public function getZipCode() |
||
497 | { |
||
498 | return $this->zipCode; |
||
499 | } |
||
500 | |||
501 | /** |
||
502 | * @param null|string $zipCode |
||
503 | * |
||
504 | * @return CustomerInterface |
||
505 | */ |
||
506 | public function setZipCode($zipCode) |
||
507 | { |
||
508 | $this->zipCode = $zipCode; |
||
509 | |||
510 | return $this; |
||
511 | } |
||
512 | |||
513 | /** |
||
514 | * @return null|string |
||
515 | */ |
||
516 | public function getCvr() |
||
517 | { |
||
518 | return $this->cvr; |
||
519 | } |
||
520 | |||
521 | /** |
||
522 | * @param null|string $cvr |
||
523 | * |
||
524 | * @return CustomerInterface |
||
525 | */ |
||
526 | public function setCvr($cvr) |
||
527 | { |
||
528 | $this->cvr = $cvr; |
||
529 | |||
530 | return $this; |
||
531 | } |
||
532 | |||
533 | /** |
||
534 | * @return null|string |
||
535 | */ |
||
536 | public function getB2bGroupId() |
||
537 | { |
||
538 | return $this->b2bGroupId; |
||
539 | } |
||
540 | |||
541 | /** |
||
542 | * @param null|string $b2bGroupId |
||
543 | * |
||
544 | * @return CustomerInterface |
||
545 | */ |
||
546 | public function setB2bGroupId($b2bGroupId) |
||
547 | { |
||
548 | $this->b2bGroupId = $b2bGroupId; |
||
549 | |||
550 | return $this; |
||
551 | } |
||
552 | |||
553 | /** |
||
554 | * @return null|string |
||
555 | */ |
||
556 | public function getComments() |
||
557 | { |
||
558 | return $this->comments; |
||
559 | } |
||
560 | |||
561 | /** |
||
562 | * @param null|string $comments |
||
563 | * |
||
564 | * @return CustomerInterface |
||
565 | */ |
||
566 | public function setComments($comments) |
||
567 | { |
||
568 | $this->comments = $comments; |
||
569 | |||
570 | return $this; |
||
571 | } |
||
572 | |||
573 | /** |
||
574 | * @return int|null |
||
575 | */ |
||
576 | public function getCountryId() |
||
577 | { |
||
578 | return $this->countryId; |
||
579 | } |
||
580 | |||
581 | /** |
||
582 | * @param int|null $countryId |
||
583 | * |
||
584 | * @return CustomerInterface |
||
585 | */ |
||
586 | public function setCountryId($countryId) |
||
587 | { |
||
588 | $this->countryId = $countryId; |
||
589 | |||
590 | return $this; |
||
591 | } |
||
592 | |||
593 | /** |
||
594 | * @return \DateTimeImmutable|null |
||
595 | */ |
||
596 | public function getCreatedDate() |
||
597 | { |
||
598 | return $this->createdDate; |
||
599 | } |
||
600 | |||
601 | /** |
||
602 | * @param \DateTimeImmutable|null $createdDate |
||
603 | * |
||
604 | * @return CustomerInterface |
||
605 | */ |
||
606 | public function setCreatedDate($createdDate) |
||
607 | { |
||
608 | $this->createdDate = $createdDate; |
||
609 | |||
610 | return $this; |
||
611 | } |
||
612 | |||
613 | /** |
||
614 | * @return null|string |
||
615 | */ |
||
616 | public function getCustomerGroupId() |
||
617 | { |
||
618 | return $this->customerGroupId; |
||
619 | } |
||
620 | |||
621 | /** |
||
622 | * @param null|string $customerGroupId |
||
623 | * |
||
624 | * @return CustomerInterface |
||
625 | */ |
||
626 | public function setCustomerGroupId($customerGroupId) |
||
627 | { |
||
628 | $this->customerGroupId = $customerGroupId; |
||
629 | |||
630 | return $this; |
||
631 | } |
||
632 | |||
633 | /** |
||
634 | * @return null|string |
||
635 | */ |
||
636 | public function getCustomerType() |
||
637 | { |
||
638 | return $this->customerType; |
||
639 | } |
||
640 | |||
641 | /** |
||
642 | * @param null|string $customerType |
||
643 | * |
||
644 | * @return CustomerInterface |
||
645 | */ |
||
646 | public function setCustomerType($customerType) |
||
647 | { |
||
648 | $this->customerType = $customerType; |
||
649 | |||
650 | return $this; |
||
651 | } |
||
652 | |||
653 | /** |
||
654 | * @return bool|null |
||
655 | */ |
||
656 | public function getB2b() |
||
657 | { |
||
658 | return $this->b2b; |
||
659 | } |
||
660 | |||
661 | /** |
||
662 | * @param bool|null $b2b |
||
663 | * |
||
664 | * @return CustomerInterface |
||
665 | */ |
||
666 | public function setB2b($b2b) |
||
667 | { |
||
668 | $this->b2b = $b2b; |
||
669 | |||
670 | return $this; |
||
671 | } |
||
672 | |||
673 | /** |
||
674 | * @return \DateTimeImmutable|null |
||
675 | */ |
||
676 | public function getLastLoginDate() |
||
677 | { |
||
678 | return $this->lastLoginDate; |
||
679 | } |
||
680 | |||
681 | /** |
||
682 | * @param \DateTimeImmutable|null $lastLoginDate |
||
683 | * |
||
684 | * @return CustomerInterface |
||
685 | */ |
||
686 | public function setLastLoginDate($lastLoginDate) |
||
687 | { |
||
688 | $this->lastLoginDate = $lastLoginDate; |
||
689 | |||
690 | return $this; |
||
691 | } |
||
692 | |||
693 | /** |
||
694 | * @return int|null |
||
695 | */ |
||
696 | public function getLoginCount() |
||
697 | { |
||
698 | return $this->loginCount; |
||
699 | } |
||
700 | |||
701 | /** |
||
702 | * @param int|null $loginCount |
||
703 | * |
||
704 | * @return CustomerInterface |
||
705 | */ |
||
706 | public function setLoginCount($loginCount) |
||
707 | { |
||
708 | $this->loginCount = $loginCount; |
||
709 | |||
710 | return $this; |
||
711 | } |
||
712 | |||
713 | /** |
||
714 | * @return null|string |
||
715 | */ |
||
716 | public function getPassword() |
||
717 | { |
||
718 | return $this->password; |
||
719 | } |
||
720 | |||
721 | /** |
||
722 | * @param null|string $password |
||
723 | * |
||
724 | * @return CustomerInterface |
||
725 | */ |
||
726 | public function setPassword($password) |
||
727 | { |
||
728 | $this->password = $password; |
||
729 | |||
730 | return $this; |
||
731 | } |
||
732 | |||
733 | /** |
||
734 | * @return null|string |
||
735 | */ |
||
736 | public function getReservedField1() |
||
737 | { |
||
738 | return $this->reservedField1; |
||
739 | } |
||
740 | |||
741 | /** |
||
742 | * @param null|string $reservedField1 |
||
743 | * |
||
744 | * @return CustomerInterface |
||
745 | */ |
||
746 | public function setReservedField1($reservedField1) |
||
747 | { |
||
748 | $this->reservedField1 = $reservedField1; |
||
749 | |||
750 | return $this; |
||
751 | } |
||
752 | |||
753 | /** |
||
754 | * @return null|string |
||
755 | */ |
||
756 | public function getReservedField2() |
||
757 | { |
||
758 | return $this->reservedField2; |
||
759 | } |
||
760 | |||
761 | /** |
||
762 | * @param null|string $reservedField2 |
||
763 | * |
||
764 | * @return CustomerInterface |
||
765 | */ |
||
766 | public function setReservedField2($reservedField2) |
||
767 | { |
||
768 | $this->reservedField2 = $reservedField2; |
||
769 | |||
770 | return $this; |
||
771 | } |
||
772 | |||
773 | /** |
||
774 | * @return null|string |
||
775 | */ |
||
776 | public function getReservedField3() |
||
777 | { |
||
778 | return $this->reservedField3; |
||
779 | } |
||
780 | |||
781 | /** |
||
782 | * @param null|string $reservedField3 |
||
783 | * |
||
784 | * @return CustomerInterface |
||
785 | */ |
||
786 | public function setReservedField3($reservedField3) |
||
787 | { |
||
788 | $this->reservedField3 = $reservedField3; |
||
789 | |||
790 | return $this; |
||
791 | } |
||
792 | |||
793 | /** |
||
794 | * @return null|string |
||
795 | */ |
||
796 | public function getReservedField4() |
||
797 | { |
||
798 | return $this->reservedField4; |
||
799 | } |
||
800 | |||
801 | /** |
||
802 | * @param null|string $reservedField4 |
||
803 | * |
||
804 | * @return CustomerInterface |
||
805 | */ |
||
806 | public function setReservedField4($reservedField4) |
||
807 | { |
||
808 | $this->reservedField4 = $reservedField4; |
||
809 | |||
810 | return $this; |
||
811 | } |
||
812 | |||
813 | /** |
||
814 | * @return null|string |
||
815 | */ |
||
816 | public function getReservedField5() |
||
817 | { |
||
818 | return $this->reservedField5; |
||
819 | } |
||
820 | |||
821 | /** |
||
822 | * @param null|string $reservedField5 |
||
823 | * |
||
824 | * @return CustomerInterface |
||
825 | */ |
||
826 | public function setReservedField5($reservedField5) |
||
827 | { |
||
828 | $this->reservedField5 = $reservedField5; |
||
829 | |||
830 | return $this; |
||
831 | } |
||
832 | } |
||
833 |
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