← All changes
|
backend/src/ValueObjects/Field/FieldGeneralSettings.php
+17
-17
1.1
→
1.5.1
View file →
| @@ -211,10 +211,10 @@ | ||
| 211 | 211 | $this->visible = $visible; |
| 212 | 212 | $this->confirmationSettings = $confirmationSettings; |
| 213 | 213 | $this->timeSettings = $timeSettings; |
| 214 | 214 | $this->dateSettings = $dateSettings; |
| 215 | + $this->htmlContent = $htmlContent; | |
| 215 | 216 | $this->showRatingText = $showRatingText; |
| 216 | - $this->htmlContent = $htmlContent; | |
| 217 | 217 | $this->agreementText = $agreementText; |
| 218 | 218 | $this->limitRange = $limitRange; |
| 219 | 219 | } |
| 220 | 220 | |
| @@ -492,43 +492,43 @@ | ||
| 492 | 492 | $this->numberFormat = $numberFormat; |
| 493 | 493 | } |
| 494 | 494 | |
| 495 | 495 | /** |
| 496 | - * Get showRatingText flag. | |
| 497 | - * @return bool | |
| 496 | + * Get the HTML content. | |
| 497 | + * @return string | |
| 498 | 498 | */ |
| 499 | - public function isShowRatingText(): bool | |
| 499 | + public function getHtmlContent(): string | |
| 500 | 500 | { |
| 501 | - return $this->showRatingText; | |
| 501 | + return $this->htmlContent; | |
| 502 | 502 | } |
| 503 | 503 | |
| 504 | 504 | /** |
| 505 | - * Set showRatingText flag. | |
| 505 | + * Set the HTML content. | |
| 506 | 506 | * |
| 507 | - * @param bool|null $val | |
| 507 | + * @param string $htmlContent | |
| 508 | 508 | */ |
| 509 | - public function setShowRatingText(?bool $val): void | |
| 509 | + public function setHtmlContent(string $htmlContent): void | |
| 510 | 510 | { |
| 511 | - $this->showRatingText = (bool)$val; | |
| 511 | + $this->htmlContent = $htmlContent; | |
| 512 | 512 | } |
| 513 | 513 | |
| 514 | 514 | /** |
| 515 | - * Get the HTML content. | |
| 516 | - * @return string | |
| 515 | + * Get showRatingText flag. | |
| 516 | + * @return bool | |
| 517 | 517 | */ |
| 518 | - public function getHtmlContent(): string | |
| 518 | + public function isShowRatingText(): bool | |
| 519 | 519 | { |
| 520 | - return $this->htmlContent; | |
| 520 | + return $this->showRatingText; | |
| 521 | 521 | } |
| 522 | 522 | |
| 523 | 523 | /** |
| 524 | - * Set the HTML content. | |
| 524 | + * Set showRatingText flag. | |
| 525 | 525 | * |
| 526 | - * @param string $htmlContent | |
| 526 | + * @param bool|null $val | |
| 527 | 527 | */ |
| 528 | - public function setHtmlContent(string $htmlContent): void | |
| 528 | + public function setShowRatingText(?bool $val): void | |
| 529 | 529 | { |
| 530 | - $this->htmlContent = $htmlContent; | |
| 530 | + $this->showRatingText = (bool)$val; | |
| 531 | 531 | } |
| 532 | 532 | |
| 533 | 533 | /** |
| 534 | 534 | * Get the agreement text. |