| Total Complexity | 83 |
| Total Lines | 1014 |
| Duplicated Lines | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
Complex classes like ProductTranslation often do a lot of different things. To break such a class down, we need to identify a cohesive component within that class. A common approach to find such a component is to look for fields/methods that share the same prefixes, or suffixes.
Once you have determined the fields that belong together, you can apply the Extract Class refactoring. If the component makes sense as a sub-class, Extract Subclass is also a candidate, and is often faster.
While breaking up the class, it is a good idea to analyze how other classes use ProductTranslation, and based on these observations, apply Extract Interface, too.
| 1 | <?php |
||
| 14 | class ProductTranslation extends AbstractEntity implements ProductTranslationInterface |
||
| 15 | { |
||
| 16 | use ProductTranslationTrait; |
||
| 17 | use Translation; |
||
| 18 | |||
| 19 | protected $hydrateConversions = [ |
||
| 20 | 'siteID' => 'siteId', |
||
| 21 | 'urlname' => 'urlName' |
||
| 22 | ]; |
||
| 23 | |||
| 24 | // @todo fix doctrine mapping for these relations |
||
| 25 | /** |
||
| 26 | * @var Period |
||
| 27 | */ |
||
| 28 | protected $periodFrontPage; |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @var Period |
||
| 32 | */ |
||
| 33 | protected $periodHidden; |
||
| 34 | |||
| 35 | /** |
||
| 36 | * @var Period |
||
| 37 | */ |
||
| 38 | protected $periodNew; |
||
| 39 | |||
| 40 | /** |
||
| 41 | * @var Unit |
||
| 42 | */ |
||
| 43 | protected $unit; |
||
| 44 | |||
| 45 | /** |
||
| 46 | * @var string|null |
||
| 47 | * |
||
| 48 | * @ORM\Column(nullable=true, type="string", length=191) |
||
| 49 | */ |
||
| 50 | protected $customField01; |
||
| 51 | |||
| 52 | /** |
||
| 53 | * @var string|null |
||
| 54 | * |
||
| 55 | * @ORM\Column(nullable=true, type="string", length=191) |
||
| 56 | */ |
||
| 57 | protected $customField02; |
||
| 58 | |||
| 59 | /** |
||
| 60 | * @var string|null |
||
| 61 | * |
||
| 62 | * @ORM\Column(nullable=true, type="string", length=191) |
||
| 63 | */ |
||
| 64 | protected $customField03; |
||
| 65 | |||
| 66 | /** |
||
| 67 | * @var string|null |
||
| 68 | * |
||
| 69 | * @ORM\Column(nullable=true, type="string", length=191) |
||
| 70 | */ |
||
| 71 | protected $customField04; |
||
| 72 | |||
| 73 | /** |
||
| 74 | * @var string|null |
||
| 75 | * |
||
| 76 | * @ORM\Column(nullable=true, type="string", length=191) |
||
| 77 | */ |
||
| 78 | protected $customField05; |
||
| 79 | |||
| 80 | /** |
||
| 81 | * @var string|null |
||
| 82 | * |
||
| 83 | * @ORM\Column(nullable=true, type="string", length=191) |
||
| 84 | */ |
||
| 85 | protected $customField06; |
||
| 86 | |||
| 87 | /** |
||
| 88 | * @var string|null |
||
| 89 | * |
||
| 90 | * @ORM\Column(nullable=true, type="string", length=191) |
||
| 91 | */ |
||
| 92 | protected $customField07; |
||
| 93 | |||
| 94 | /** |
||
| 95 | * @var string|null |
||
| 96 | * |
||
| 97 | * @ORM\Column(nullable=true, type="string", length=191) |
||
| 98 | */ |
||
| 99 | protected $customField08; |
||
| 100 | |||
| 101 | /** |
||
| 102 | * @var string|null |
||
| 103 | * |
||
| 104 | * @ORM\Column(nullable=true, type="string", length=191) |
||
| 105 | */ |
||
| 106 | protected $customField09; |
||
| 107 | |||
| 108 | /** |
||
| 109 | * @var string|null |
||
| 110 | * |
||
| 111 | * @ORM\Column(nullable=true, type="string", length=191) |
||
| 112 | */ |
||
| 113 | protected $customField10; |
||
| 114 | |||
| 115 | /** |
||
| 116 | * @var \DateTimeImmutable|null |
||
| 117 | * |
||
| 118 | * @ORM\Column(nullable=true, type="datetime_immutable") |
||
| 119 | */ |
||
| 120 | protected $expectedDeliveryTime; |
||
| 121 | |||
| 122 | /** |
||
| 123 | * @var \DateTimeImmutable|null |
||
| 124 | * |
||
| 125 | * @ORM\Column(nullable=true, type="datetime_immutable") |
||
| 126 | */ |
||
| 127 | protected $expectedDeliveryTimeNotInStock; |
||
| 128 | |||
| 129 | /** |
||
| 130 | * @var string|null |
||
| 131 | * |
||
| 132 | * @ORM\Column(nullable=true, type="string", length=191) |
||
| 133 | */ |
||
| 134 | protected $giftCertificatePdfBackgroundImage; |
||
| 135 | |||
| 136 | /** |
||
| 137 | * @var bool|null |
||
| 138 | * |
||
| 139 | * @ORM\Column(nullable=true, type="boolean") |
||
| 140 | */ |
||
| 141 | protected $hidden; |
||
| 142 | |||
| 143 | /** |
||
| 144 | * @var bool|null |
||
| 145 | * |
||
| 146 | * @ORM\Column(nullable=true, type="boolean") |
||
| 147 | */ |
||
| 148 | protected $hiddenForMobile; |
||
| 149 | |||
| 150 | /** |
||
| 151 | * @var string|null |
||
| 152 | * |
||
| 153 | * @ORM\Column(nullable=true, type="string", length=191) |
||
| 154 | */ |
||
| 155 | protected $imageAltText; |
||
| 156 | |||
| 157 | /** |
||
| 158 | * @var bool|null |
||
| 159 | * |
||
| 160 | * @ORM\Column(nullable=true, type="boolean") |
||
| 161 | */ |
||
| 162 | protected $isTopListHidden; |
||
| 163 | |||
| 164 | /** |
||
| 165 | * @var string|null |
||
| 166 | * |
||
| 167 | * @ORM\Column(nullable=true, type="string", length=191) |
||
| 168 | */ |
||
| 169 | protected $keyWords; |
||
| 170 | |||
| 171 | /** |
||
| 172 | * @var string|null |
||
| 173 | * |
||
| 174 | * @ORM\Column(nullable=true, type="text") |
||
| 175 | */ |
||
| 176 | protected $longDescription; |
||
| 177 | |||
| 178 | /** |
||
| 179 | * @var string|null |
||
| 180 | * |
||
| 181 | * @ORM\Column(nullable=true, type="text") |
||
| 182 | */ |
||
| 183 | protected $longDescription2; |
||
| 184 | |||
| 185 | /** |
||
| 186 | * @var string|null |
||
| 187 | * |
||
| 188 | * @ORM\Column(nullable=true, type="text") |
||
| 189 | */ |
||
| 190 | protected $metaDescription; |
||
| 191 | |||
| 192 | /** |
||
| 193 | * @var string|null |
||
| 194 | * |
||
| 195 | * @ORM\Column(nullable=true, type="string", length=191) |
||
| 196 | */ |
||
| 197 | protected $name; |
||
| 198 | |||
| 199 | /** |
||
| 200 | * @var string|null |
||
| 201 | * |
||
| 202 | * @ORM\Column(nullable=true, type="string", length=191) |
||
| 203 | */ |
||
| 204 | protected $pageTitle; |
||
| 205 | |||
| 206 | /** |
||
| 207 | * @var string|null |
||
| 208 | * |
||
| 209 | * @ORM\Column(nullable=true, type="string", length=191) |
||
| 210 | */ |
||
| 211 | protected $rememberToBuyTextHeading; |
||
| 212 | |||
| 213 | /** |
||
| 214 | * @var string|null |
||
| 215 | * |
||
| 216 | * @ORM\Column(nullable=true, type="string", length=191) |
||
| 217 | */ |
||
| 218 | protected $rememberToBuyTextSubheading; |
||
| 219 | |||
| 220 | /** |
||
| 221 | * @var float|null |
||
| 222 | * |
||
| 223 | * @ORM\Column(nullable=true, type="decimal", precision=12, scale=2) |
||
| 224 | */ |
||
| 225 | protected $retailSalesPrice; |
||
| 226 | |||
| 227 | /** |
||
| 228 | * @var string|null |
||
| 229 | * |
||
| 230 | * @ORM\Column(nullable=true, type="string", length=191) |
||
| 231 | */ |
||
| 232 | protected $shortDescription; |
||
| 233 | |||
| 234 | /** |
||
| 235 | * @var bool|null |
||
| 236 | * |
||
| 237 | * @ORM\Column(nullable=true, type="boolean") |
||
| 238 | */ |
||
| 239 | protected $showAsNew; |
||
| 240 | |||
| 241 | /** |
||
| 242 | * @var bool|null |
||
| 243 | * |
||
| 244 | * @ORM\Column(nullable=true, type="boolean") |
||
| 245 | */ |
||
| 246 | protected $showOnFrontPage; |
||
| 247 | |||
| 248 | /** |
||
| 249 | * @var int|null |
||
| 250 | * |
||
| 251 | * @ORM\Column(nullable=true, type="integer") |
||
| 252 | */ |
||
| 253 | protected $siteId; |
||
| 254 | |||
| 255 | /** |
||
| 256 | * @var int|null |
||
| 257 | * |
||
| 258 | * @ORM\Column(nullable=true, type="integer") |
||
| 259 | */ |
||
| 260 | protected $sortOrder; |
||
| 261 | |||
| 262 | /** |
||
| 263 | * @var string|null |
||
| 264 | * |
||
| 265 | * @ORM\Column(nullable=true, type="string", length=191) |
||
| 266 | */ |
||
| 267 | protected $techDocLink; |
||
| 268 | |||
| 269 | /** |
||
| 270 | * @var string|null |
||
| 271 | * |
||
| 272 | * @ORM\Column(nullable=true, type="string", length=191) |
||
| 273 | */ |
||
| 274 | protected $techDocLink2; |
||
| 275 | |||
| 276 | /** |
||
| 277 | * @var string|null |
||
| 278 | * |
||
| 279 | * @ORM\Column(nullable=true, type="string", length=191) |
||
| 280 | */ |
||
| 281 | protected $techDocLink3; |
||
| 282 | |||
| 283 | /** |
||
| 284 | * @var string|null |
||
| 285 | * |
||
| 286 | * @ORM\Column(nullable=true, type="string", length=191) |
||
| 287 | */ |
||
| 288 | protected $unitNumber; |
||
| 289 | |||
| 290 | /** |
||
| 291 | * @var string|null |
||
| 292 | * |
||
| 293 | * @ORM\Column(nullable=true, type="string", length=191) |
||
| 294 | */ |
||
| 295 | protected $urlName; |
||
| 296 | |||
| 297 | public function hydrate(array $data, bool $useConversions = false, $scalarsOnly = true) |
||
| 298 | { |
||
| 299 | if($data['expectedDeliveryTime']) { |
||
| 300 | $data['expectedDeliveryTime'] = $this->getDateTimeFromJson($data['expectedDeliveryTime']); |
||
| 301 | } |
||
| 302 | |||
| 303 | if($data['expectedDeliveryTimeNotInStock']) { |
||
| 304 | $data['expectedDeliveryTimeNotInStock'] = $this->getDateTimeFromJson($data['expectedDeliveryTimeNotInStock']); |
||
| 305 | } |
||
| 306 | |||
| 307 | parent::hydrate($data, $useConversions, $scalarsOnly); |
||
| 308 | } |
||
| 309 | |||
| 310 | /** |
||
| 311 | * @return Period |
||
| 312 | */ |
||
| 313 | public function getPeriodFrontPage(): Period |
||
| 316 | } |
||
| 317 | |||
| 318 | /** |
||
| 319 | * @param Period $periodFrontPage |
||
| 320 | * @return ProductTranslationInterface |
||
| 321 | */ |
||
| 322 | public function setPeriodFrontPage(Period $periodFrontPage) |
||
| 323 | { |
||
| 324 | $this->periodFrontPage = $periodFrontPage; |
||
| 325 | return $this; |
||
| 326 | } |
||
| 327 | |||
| 328 | /** |
||
| 329 | * @return Period |
||
| 330 | */ |
||
| 331 | public function getPeriodHidden(): Period |
||
| 332 | { |
||
| 333 | return $this->periodHidden; |
||
| 334 | } |
||
| 335 | |||
| 336 | /** |
||
| 337 | * @param Period $periodHidden |
||
| 338 | * @return ProductTranslationInterface |
||
| 339 | */ |
||
| 340 | public function setPeriodHidden(Period $periodHidden) |
||
| 341 | { |
||
| 342 | $this->periodHidden = $periodHidden; |
||
| 343 | return $this; |
||
| 344 | } |
||
| 345 | |||
| 346 | /** |
||
| 347 | * @return Period |
||
| 348 | */ |
||
| 349 | public function getPeriodNew(): Period |
||
| 350 | { |
||
| 351 | return $this->periodNew; |
||
| 352 | } |
||
| 353 | |||
| 354 | /** |
||
| 355 | * @param Period $periodNew |
||
| 356 | * @return ProductTranslationInterface |
||
| 357 | */ |
||
| 358 | public function setPeriodNew(Period $periodNew) |
||
| 359 | { |
||
| 360 | $this->periodNew = $periodNew; |
||
| 361 | return $this; |
||
| 362 | } |
||
| 363 | |||
| 364 | /** |
||
| 365 | * @return Unit |
||
| 366 | */ |
||
| 367 | public function getUnit(): Unit |
||
| 368 | { |
||
| 369 | return $this->unit; |
||
| 370 | } |
||
| 371 | |||
| 372 | /** |
||
| 373 | * @param Unit $unit |
||
| 374 | * @return ProductTranslationInterface |
||
| 375 | */ |
||
| 376 | public function setUnit(Unit $unit) |
||
| 377 | { |
||
| 378 | $this->unit = $unit; |
||
| 379 | return $this; |
||
| 380 | } |
||
| 381 | |||
| 382 | /** |
||
| 383 | * @return null|string |
||
| 384 | */ |
||
| 385 | public function getCustomField01(): ?string |
||
| 386 | { |
||
| 387 | return $this->customField01; |
||
| 388 | } |
||
| 389 | |||
| 390 | /** |
||
| 391 | * @param null|string $customField01 |
||
| 392 | * @return ProductTranslationInterface |
||
| 393 | */ |
||
| 394 | public function setCustomField01(?string $customField01) |
||
| 395 | { |
||
| 396 | $this->customField01 = $customField01; |
||
| 397 | return $this; |
||
| 398 | } |
||
| 399 | |||
| 400 | /** |
||
| 401 | * @return null|string |
||
| 402 | */ |
||
| 403 | public function getCustomField02(): ?string |
||
| 404 | { |
||
| 405 | return $this->customField02; |
||
| 406 | } |
||
| 407 | |||
| 408 | /** |
||
| 409 | * @param null|string $customField02 |
||
| 410 | * @return ProductTranslationInterface |
||
| 411 | */ |
||
| 412 | public function setCustomField02(?string $customField02) |
||
| 413 | { |
||
| 414 | $this->customField02 = $customField02; |
||
| 415 | return $this; |
||
| 416 | } |
||
| 417 | |||
| 418 | /** |
||
| 419 | * @return null|string |
||
| 420 | */ |
||
| 421 | public function getCustomField03(): ?string |
||
| 424 | } |
||
| 425 | |||
| 426 | /** |
||
| 427 | * @param null|string $customField03 |
||
| 428 | * @return ProductTranslationInterface |
||
| 429 | */ |
||
| 430 | public function setCustomField03(?string $customField03) |
||
| 431 | { |
||
| 432 | $this->customField03 = $customField03; |
||
| 433 | return $this; |
||
| 434 | } |
||
| 435 | |||
| 436 | /** |
||
| 437 | * @return null|string |
||
| 438 | */ |
||
| 439 | public function getCustomField04(): ?string |
||
| 440 | { |
||
| 441 | return $this->customField04; |
||
| 442 | } |
||
| 443 | |||
| 444 | /** |
||
| 445 | * @param null|string $customField04 |
||
| 446 | * @return ProductTranslationInterface |
||
| 447 | */ |
||
| 448 | public function setCustomField04(?string $customField04) |
||
| 449 | { |
||
| 450 | $this->customField04 = $customField04; |
||
| 451 | return $this; |
||
| 452 | } |
||
| 453 | |||
| 454 | /** |
||
| 455 | * @return null|string |
||
| 456 | */ |
||
| 457 | public function getCustomField05(): ?string |
||
| 458 | { |
||
| 459 | return $this->customField05; |
||
| 460 | } |
||
| 461 | |||
| 462 | /** |
||
| 463 | * @param null|string $customField05 |
||
| 464 | * @return ProductTranslationInterface |
||
| 465 | */ |
||
| 466 | public function setCustomField05(?string $customField05) |
||
| 467 | { |
||
| 468 | $this->customField05 = $customField05; |
||
| 469 | return $this; |
||
| 470 | } |
||
| 471 | |||
| 472 | /** |
||
| 473 | * @return null|string |
||
| 474 | */ |
||
| 475 | public function getCustomField06(): ?string |
||
| 476 | { |
||
| 477 | return $this->customField06; |
||
| 478 | } |
||
| 479 | |||
| 480 | /** |
||
| 481 | * @param null|string $customField06 |
||
| 482 | * @return ProductTranslationInterface |
||
| 483 | */ |
||
| 484 | public function setCustomField06(?string $customField06) |
||
| 485 | { |
||
| 486 | $this->customField06 = $customField06; |
||
| 487 | return $this; |
||
| 488 | } |
||
| 489 | |||
| 490 | /** |
||
| 491 | * @return null|string |
||
| 492 | */ |
||
| 493 | public function getCustomField07(): ?string |
||
| 494 | { |
||
| 495 | return $this->customField07; |
||
| 496 | } |
||
| 497 | |||
| 498 | /** |
||
| 499 | * @param null|string $customField07 |
||
| 500 | * @return ProductTranslationInterface |
||
| 501 | */ |
||
| 502 | public function setCustomField07(?string $customField07) |
||
| 503 | { |
||
| 504 | $this->customField07 = $customField07; |
||
| 505 | return $this; |
||
| 506 | } |
||
| 507 | |||
| 508 | /** |
||
| 509 | * @return null|string |
||
| 510 | */ |
||
| 511 | public function getCustomField08(): ?string |
||
| 512 | { |
||
| 513 | return $this->customField08; |
||
| 514 | } |
||
| 515 | |||
| 516 | /** |
||
| 517 | * @param null|string $customField08 |
||
| 518 | * @return ProductTranslationInterface |
||
| 519 | */ |
||
| 520 | public function setCustomField08(?string $customField08) |
||
| 521 | { |
||
| 522 | $this->customField08 = $customField08; |
||
| 523 | return $this; |
||
| 524 | } |
||
| 525 | |||
| 526 | /** |
||
| 527 | * @return null|string |
||
| 528 | */ |
||
| 529 | public function getCustomField09(): ?string |
||
| 530 | { |
||
| 531 | return $this->customField09; |
||
| 532 | } |
||
| 533 | |||
| 534 | /** |
||
| 535 | * @param null|string $customField09 |
||
| 536 | * @return ProductTranslationInterface |
||
| 537 | */ |
||
| 538 | public function setCustomField09(?string $customField09) |
||
| 539 | { |
||
| 540 | $this->customField09 = $customField09; |
||
| 541 | return $this; |
||
| 542 | } |
||
| 543 | |||
| 544 | /** |
||
| 545 | * @return null|string |
||
| 546 | */ |
||
| 547 | public function getCustomField10(): ?string |
||
| 548 | { |
||
| 549 | return $this->customField10; |
||
| 550 | } |
||
| 551 | |||
| 552 | /** |
||
| 553 | * @param null|string $customField10 |
||
| 554 | * @return ProductTranslationInterface |
||
| 555 | */ |
||
| 556 | public function setCustomField10(?string $customField10) |
||
| 557 | { |
||
| 558 | $this->customField10 = $customField10; |
||
| 559 | return $this; |
||
| 560 | } |
||
| 561 | |||
| 562 | /** |
||
| 563 | * @return \DateTimeImmutable|null |
||
| 564 | */ |
||
| 565 | public function getExpectedDeliveryTime(): ?\DateTimeImmutable |
||
| 566 | { |
||
| 567 | return $this->expectedDeliveryTime; |
||
| 568 | } |
||
| 569 | |||
| 570 | /** |
||
| 571 | * @param \DateTimeImmutable|null $expectedDeliveryTime |
||
| 572 | * @return ProductTranslationInterface |
||
| 573 | */ |
||
| 574 | public function setExpectedDeliveryTime(?\DateTimeImmutable $expectedDeliveryTime) |
||
| 575 | { |
||
| 576 | $this->expectedDeliveryTime = $expectedDeliveryTime; |
||
| 577 | return $this; |
||
| 578 | } |
||
| 579 | |||
| 580 | /** |
||
| 581 | * @return \DateTimeImmutable|null |
||
| 582 | */ |
||
| 583 | public function getExpectedDeliveryTimeNotInStock(): ?\DateTimeImmutable |
||
| 584 | { |
||
| 585 | return $this->expectedDeliveryTimeNotInStock; |
||
| 586 | } |
||
| 587 | |||
| 588 | /** |
||
| 589 | * @param \DateTimeImmutable|null $expectedDeliveryTimeNotInStock |
||
| 590 | * @return ProductTranslationInterface |
||
| 591 | */ |
||
| 592 | public function setExpectedDeliveryTimeNotInStock(?\DateTimeImmutable $expectedDeliveryTimeNotInStock) |
||
| 593 | { |
||
| 594 | $this->expectedDeliveryTimeNotInStock = $expectedDeliveryTimeNotInStock; |
||
| 595 | return $this; |
||
| 596 | } |
||
| 597 | |||
| 598 | /** |
||
| 599 | * @return null|string |
||
| 600 | */ |
||
| 601 | public function getGiftCertificatePdfBackgroundImage(): ?string |
||
| 602 | { |
||
| 603 | return $this->giftCertificatePdfBackgroundImage; |
||
| 604 | } |
||
| 605 | |||
| 606 | /** |
||
| 607 | * @param null|string $giftCertificatePdfBackgroundImage |
||
| 608 | * @return ProductTranslationInterface |
||
| 609 | */ |
||
| 610 | public function setGiftCertificatePdfBackgroundImage(?string $giftCertificatePdfBackgroundImage) |
||
| 611 | { |
||
| 612 | $this->giftCertificatePdfBackgroundImage = $giftCertificatePdfBackgroundImage; |
||
| 613 | return $this; |
||
| 614 | } |
||
| 615 | |||
| 616 | /** |
||
| 617 | * @return bool|null |
||
| 618 | */ |
||
| 619 | public function getHidden(): ?bool |
||
| 620 | { |
||
| 621 | return $this->hidden; |
||
| 622 | } |
||
| 623 | |||
| 624 | /** |
||
| 625 | * @param bool|null $hidden |
||
| 626 | * @return ProductTranslationInterface |
||
| 627 | */ |
||
| 628 | public function setHidden(?bool $hidden) |
||
| 629 | { |
||
| 630 | $this->hidden = $hidden; |
||
| 631 | return $this; |
||
| 632 | } |
||
| 633 | |||
| 634 | /** |
||
| 635 | * @return bool|null |
||
| 636 | */ |
||
| 637 | public function getHiddenForMobile(): ?bool |
||
| 638 | { |
||
| 639 | return $this->hiddenForMobile; |
||
| 640 | } |
||
| 641 | |||
| 642 | /** |
||
| 643 | * @param bool|null $hiddenForMobile |
||
| 644 | * @return ProductTranslationInterface |
||
| 645 | */ |
||
| 646 | public function setHiddenForMobile(?bool $hiddenForMobile) |
||
| 647 | { |
||
| 648 | $this->hiddenForMobile = $hiddenForMobile; |
||
| 649 | return $this; |
||
| 650 | } |
||
| 651 | |||
| 652 | /** |
||
| 653 | * @return null|string |
||
| 654 | */ |
||
| 655 | public function getImageAltText(): ?string |
||
| 656 | { |
||
| 657 | return $this->imageAltText; |
||
| 658 | } |
||
| 659 | |||
| 660 | /** |
||
| 661 | * @param null|string $imageAltText |
||
| 662 | * @return ProductTranslationInterface |
||
| 663 | */ |
||
| 664 | public function setImageAltText(?string $imageAltText) |
||
| 665 | { |
||
| 666 | $this->imageAltText = $imageAltText; |
||
| 667 | return $this; |
||
| 668 | } |
||
| 669 | |||
| 670 | /** |
||
| 671 | * @return bool|null |
||
| 672 | */ |
||
| 673 | public function getisTopListHidden(): ?bool |
||
| 674 | { |
||
| 675 | return $this->isTopListHidden; |
||
| 676 | } |
||
| 677 | |||
| 678 | /** |
||
| 679 | * @param bool|null $isTopListHidden |
||
| 680 | * @return ProductTranslationInterface |
||
| 681 | */ |
||
| 682 | public function setIsTopListHidden(?bool $isTopListHidden) |
||
| 683 | { |
||
| 684 | $this->isTopListHidden = $isTopListHidden; |
||
| 685 | return $this; |
||
| 686 | } |
||
| 687 | |||
| 688 | /** |
||
| 689 | * @return null|string |
||
| 690 | */ |
||
| 691 | public function getKeyWords(): ?string |
||
| 692 | { |
||
| 693 | return $this->keyWords; |
||
| 694 | } |
||
| 695 | |||
| 696 | /** |
||
| 697 | * @param null|string $keyWords |
||
| 698 | * @return ProductTranslationInterface |
||
| 699 | */ |
||
| 700 | public function setKeyWords(?string $keyWords) |
||
| 701 | { |
||
| 702 | $this->keyWords = $keyWords; |
||
| 703 | return $this; |
||
| 704 | } |
||
| 705 | |||
| 706 | /** |
||
| 707 | * @return null|string |
||
| 708 | */ |
||
| 709 | public function getLongDescription(): ?string |
||
| 710 | { |
||
| 711 | return $this->longDescription; |
||
| 712 | } |
||
| 713 | |||
| 714 | /** |
||
| 715 | * @param null|string $longDescription |
||
| 716 | * @return ProductTranslationInterface |
||
| 717 | */ |
||
| 718 | public function setLongDescription(?string $longDescription) |
||
| 719 | { |
||
| 720 | $this->longDescription = $longDescription; |
||
| 721 | return $this; |
||
| 722 | } |
||
| 723 | |||
| 724 | /** |
||
| 725 | * @return null|string |
||
| 726 | */ |
||
| 727 | public function getLongDescription2(): ?string |
||
| 728 | { |
||
| 729 | return $this->longDescription2; |
||
| 730 | } |
||
| 731 | |||
| 732 | /** |
||
| 733 | * @param null|string $longDescription2 |
||
| 734 | * @return ProductTranslationInterface |
||
| 735 | */ |
||
| 736 | public function setLongDescription2(?string $longDescription2) |
||
| 737 | { |
||
| 738 | $this->longDescription2 = $longDescription2; |
||
| 739 | return $this; |
||
| 740 | } |
||
| 741 | |||
| 742 | /** |
||
| 743 | * @return null|string |
||
| 744 | */ |
||
| 745 | public function getMetaDescription(): ?string |
||
| 746 | { |
||
| 747 | return $this->metaDescription; |
||
| 748 | } |
||
| 749 | |||
| 750 | /** |
||
| 751 | * @param null|string $metaDescription |
||
| 752 | * @return ProductTranslationInterface |
||
| 753 | */ |
||
| 754 | public function setMetaDescription(?string $metaDescription) |
||
| 755 | { |
||
| 756 | $this->metaDescription = $metaDescription; |
||
| 757 | return $this; |
||
| 758 | } |
||
| 759 | |||
| 760 | /** |
||
| 761 | * @return null|string |
||
| 762 | */ |
||
| 763 | public function getName(): ?string |
||
| 764 | { |
||
| 765 | return $this->name; |
||
| 766 | } |
||
| 767 | |||
| 768 | /** |
||
| 769 | * @param null|string $name |
||
| 770 | * @return ProductTranslationInterface |
||
| 771 | */ |
||
| 772 | public function setName(?string $name) |
||
| 773 | { |
||
| 774 | $this->name = $name; |
||
| 775 | return $this; |
||
| 776 | } |
||
| 777 | |||
| 778 | /** |
||
| 779 | * @return null|string |
||
| 780 | */ |
||
| 781 | public function getPageTitle(): ?string |
||
| 782 | { |
||
| 783 | return $this->pageTitle; |
||
| 784 | } |
||
| 785 | |||
| 786 | /** |
||
| 787 | * @param null|string $pageTitle |
||
| 788 | * @return ProductTranslationInterface |
||
| 789 | */ |
||
| 790 | public function setPageTitle(?string $pageTitle) |
||
| 791 | { |
||
| 792 | $this->pageTitle = $pageTitle; |
||
| 793 | return $this; |
||
| 794 | } |
||
| 795 | |||
| 796 | /** |
||
| 797 | * @return null|string |
||
| 798 | */ |
||
| 799 | public function getRememberToBuyTextHeading(): ?string |
||
| 800 | { |
||
| 801 | return $this->rememberToBuyTextHeading; |
||
| 802 | } |
||
| 803 | |||
| 804 | /** |
||
| 805 | * @param null|string $rememberToBuyTextHeading |
||
| 806 | * @return ProductTranslationInterface |
||
| 807 | */ |
||
| 808 | public function setRememberToBuyTextHeading(?string $rememberToBuyTextHeading) |
||
| 812 | } |
||
| 813 | |||
| 814 | /** |
||
| 815 | * @return null|string |
||
| 816 | */ |
||
| 817 | public function getRememberToBuyTextSubheading(): ?string |
||
| 818 | { |
||
| 819 | return $this->rememberToBuyTextSubheading; |
||
| 820 | } |
||
| 821 | |||
| 822 | /** |
||
| 823 | * @param null|string $rememberToBuyTextSubheading |
||
| 824 | * @return ProductTranslationInterface |
||
| 825 | */ |
||
| 826 | public function setRememberToBuyTextSubheading(?string $rememberToBuyTextSubheading) |
||
| 830 | } |
||
| 831 | |||
| 832 | /** |
||
| 833 | * @return float|null |
||
| 834 | */ |
||
| 835 | public function getRetailSalesPrice(): ?float |
||
| 836 | { |
||
| 837 | return $this->retailSalesPrice; |
||
| 838 | } |
||
| 839 | |||
| 840 | /** |
||
| 841 | * @param float|null $retailSalesPrice |
||
| 842 | * @return ProductTranslationInterface |
||
| 843 | */ |
||
| 844 | public function setRetailSalesPrice(?float $retailSalesPrice) |
||
| 845 | { |
||
| 846 | $this->retailSalesPrice = $retailSalesPrice; |
||
| 847 | return $this; |
||
| 848 | } |
||
| 849 | |||
| 850 | /** |
||
| 851 | * @return null|string |
||
| 852 | */ |
||
| 853 | public function getShortDescription(): ?string |
||
| 854 | { |
||
| 855 | return $this->shortDescription; |
||
| 856 | } |
||
| 857 | |||
| 858 | /** |
||
| 859 | * @param null|string $shortDescription |
||
| 860 | * @return ProductTranslationInterface |
||
| 861 | */ |
||
| 862 | public function setShortDescription(?string $shortDescription) |
||
| 863 | { |
||
| 864 | $this->shortDescription = $shortDescription; |
||
| 865 | return $this; |
||
| 866 | } |
||
| 867 | |||
| 868 | /** |
||
| 869 | * @return bool|null |
||
| 870 | */ |
||
| 871 | public function getShowAsNew(): ?bool |
||
| 872 | { |
||
| 873 | return $this->showAsNew; |
||
| 874 | } |
||
| 875 | |||
| 876 | /** |
||
| 877 | * @param bool|null $showAsNew |
||
| 878 | * @return ProductTranslationInterface |
||
| 879 | */ |
||
| 880 | public function setShowAsNew(?bool $showAsNew) |
||
| 881 | { |
||
| 882 | $this->showAsNew = $showAsNew; |
||
| 883 | return $this; |
||
| 884 | } |
||
| 885 | |||
| 886 | /** |
||
| 887 | * @return bool|null |
||
| 888 | */ |
||
| 889 | public function getShowOnFrontPage(): ?bool |
||
| 890 | { |
||
| 891 | return $this->showOnFrontPage; |
||
| 892 | } |
||
| 893 | |||
| 894 | /** |
||
| 895 | * @param bool|null $showOnFrontPage |
||
| 896 | * @return ProductTranslationInterface |
||
| 897 | */ |
||
| 898 | public function setShowOnFrontPage(?bool $showOnFrontPage) |
||
| 899 | { |
||
| 900 | $this->showOnFrontPage = $showOnFrontPage; |
||
| 901 | return $this; |
||
| 902 | } |
||
| 903 | |||
| 904 | /** |
||
| 905 | * @return int|null |
||
| 906 | */ |
||
| 907 | public function getSiteId(): ?int |
||
| 908 | { |
||
| 909 | return $this->siteId; |
||
| 910 | } |
||
| 911 | |||
| 912 | /** |
||
| 913 | * @param int|null $siteId |
||
| 914 | * @return ProductTranslationInterface |
||
| 915 | */ |
||
| 916 | public function setSiteId(?int $siteId) |
||
| 917 | { |
||
| 918 | $this->siteId = $siteId; |
||
| 919 | return $this; |
||
| 920 | } |
||
| 921 | |||
| 922 | /** |
||
| 923 | * @return int|null |
||
| 924 | */ |
||
| 925 | public function getSortOrder(): ?int |
||
| 926 | { |
||
| 927 | return $this->sortOrder; |
||
| 928 | } |
||
| 929 | |||
| 930 | /** |
||
| 931 | * @param int|null $sortOrder |
||
| 932 | * @return ProductTranslationInterface |
||
| 933 | */ |
||
| 934 | public function setSortOrder(?int $sortOrder) |
||
| 935 | { |
||
| 936 | $this->sortOrder = $sortOrder; |
||
| 937 | return $this; |
||
| 938 | } |
||
| 939 | |||
| 940 | /** |
||
| 941 | * @return null|string |
||
| 942 | */ |
||
| 943 | public function getTechDocLink(): ?string |
||
| 944 | { |
||
| 945 | return $this->techDocLink; |
||
| 946 | } |
||
| 947 | |||
| 948 | /** |
||
| 949 | * @param null|string $techDocLink |
||
| 950 | * @return ProductTranslationInterface |
||
| 951 | */ |
||
| 952 | public function setTechDocLink(?string $techDocLink) |
||
| 953 | { |
||
| 954 | $this->techDocLink = $techDocLink; |
||
| 955 | return $this; |
||
| 956 | } |
||
| 957 | |||
| 958 | /** |
||
| 959 | * @return null|string |
||
| 960 | */ |
||
| 961 | public function getTechDocLink2(): ?string |
||
| 962 | { |
||
| 963 | return $this->techDocLink2; |
||
| 964 | } |
||
| 965 | |||
| 966 | /** |
||
| 967 | * @param null|string $techDocLink2 |
||
| 968 | * @return ProductTranslationInterface |
||
| 969 | */ |
||
| 970 | public function setTechDocLink2(?string $techDocLink2) |
||
| 971 | { |
||
| 972 | $this->techDocLink2 = $techDocLink2; |
||
| 973 | return $this; |
||
| 974 | } |
||
| 975 | |||
| 976 | /** |
||
| 977 | * @return null|string |
||
| 978 | */ |
||
| 979 | public function getTechDocLink3(): ?string |
||
| 980 | { |
||
| 981 | return $this->techDocLink3; |
||
| 982 | } |
||
| 983 | |||
| 984 | /** |
||
| 985 | * @param null|string $techDocLink3 |
||
| 986 | * @return ProductTranslationInterface |
||
| 987 | */ |
||
| 988 | public function setTechDocLink3(?string $techDocLink3) |
||
| 989 | { |
||
| 990 | $this->techDocLink3 = $techDocLink3; |
||
| 991 | return $this; |
||
| 992 | } |
||
| 993 | |||
| 994 | /** |
||
| 995 | * @return null|string |
||
| 996 | */ |
||
| 997 | public function getUnitNumber(): ?string |
||
| 1000 | } |
||
| 1001 | |||
| 1002 | /** |
||
| 1003 | * @param null|string $unitNumber |
||
| 1004 | * @return ProductTranslationInterface |
||
| 1005 | */ |
||
| 1006 | public function setUnitNumber(?string $unitNumber) |
||
| 1007 | { |
||
| 1008 | $this->unitNumber = $unitNumber; |
||
| 1009 | return $this; |
||
| 1010 | } |
||
| 1011 | |||
| 1012 | /** |
||
| 1013 | * @return null|string |
||
| 1014 | */ |
||
| 1015 | public function getUrlName(): ?string |
||
| 1016 | { |
||
| 1017 | return $this->urlName; |
||
| 1018 | } |
||
| 1019 | |||
| 1020 | /** |
||
| 1021 | * @param null|string $urlName |
||
| 1022 | * @return ProductTranslationInterface |
||
| 1023 | */ |
||
| 1024 | public function setUrlName(?string $urlName) |
||
| 1028 | } |
||
| 1029 | } |
||
| 1030 |
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