Release 2.0.25 (#4066)
* added support for hourly rate column in detail table * allow to register icon in extension * allow to show QR code secret * new translations * bump theme and packages * fix validation for invoice-document-filenames with uppercase character * max upload size 1MB * fix last month in daterange-picker in certain situations, more years in quick-select * remove unused package-versions-deprecated * link preferences from contract warning message * added page_setup page layout * prevent DROP TABLE in addSQL() and replace drop table with schema call * added azuyalabs/yasumi
This commit is contained in:
@@ -17,8 +17,9 @@ final class Configuration
|
||||
{
|
||||
private ?string $label = null;
|
||||
private string $translationDomain = 'messages';
|
||||
private string|int|null|bool|array $value = null;
|
||||
private string|int|null|bool|float $value = null;
|
||||
private ?string $type = null;
|
||||
/** @var array<string, mixed> */
|
||||
private array $options = [];
|
||||
private bool $enabled = true;
|
||||
private bool $required = true;
|
||||
@@ -36,12 +37,12 @@ final class Configuration
|
||||
return $this->name;
|
||||
}
|
||||
|
||||
public function getValue(): string|int|null|bool|object
|
||||
public function getValue(): string|int|null|bool|float
|
||||
{
|
||||
return $this->value;
|
||||
}
|
||||
|
||||
public function setValue(string|int|null|bool|object $value): Configuration
|
||||
public function setValue(string|int|null|bool|float $value): Configuration
|
||||
{
|
||||
if ($this->type === CheckboxType::class || $this->type === YesNoType::class) {
|
||||
$value = (bool) $value;
|
||||
@@ -131,11 +132,17 @@ final class Configuration
|
||||
return $this;
|
||||
}
|
||||
|
||||
/**
|
||||
* @return array<string, mixed>
|
||||
*/
|
||||
public function getOptions(): array
|
||||
{
|
||||
return $this->options;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param array<string, mixed> $options
|
||||
*/
|
||||
public function setOptions(array $options): Configuration
|
||||
{
|
||||
$this->options = $options;
|
||||
|
||||
Reference in New Issue
Block a user