label = $label; $this->required = $required; $this->placeholder = $placeholder; $this->hideLabel = $hideLabel; $this->readOnly = $readOnly; $this->description = $description; $this->requiredMessage = $requiredMessage; $this->cssClasses = $cssClasses; $this->shuffleOptions = $shuffleOptions; $this->showValues = $showValues; $this->enableSearch = $enableSearch; $this->phoneFormat = $phoneFormat; $this->phoneAutoDetect = $phoneAutoDetect; $this->minValue = $minValue; $this->maxValue = $maxValue; $this->step = $step; $this->numberFormat = $numberFormat; $this->visible = $visible; $this->timeSettings = $timeSettings; } /** * Get the label. * @return string */ public function getLabel(): string { return $this->label; } /** * Get the placeholder. * @return string */ public function getPlaceholder(): string { return $this->placeholder; } /** * Get the description. * @return string */ public function getDescription(): string { return $this->description; } /** * Get the required message. * @return string */ public function getRequiredMessage(): string { return $this->requiredMessage; } /** * Get the CSS classes. * @return string */ public function getCssClasses(): string { return $this->cssClasses; } /** * Get hideLabel. * @return bool */ public function isHideLabel(): bool { return $this->hideLabel; } /** * Get readOnly. * @return bool */ public function isReadOnly(): bool { return $this->readOnly; } /** * Get required. * @return bool */ public function isRequired(): bool { return $this->required; } /** * Get shuffleOptions. * @return bool */ public function isShuffleOptions(): bool { return $this->shuffleOptions; } /** * Get showValues. * @return bool */ public function isShowValues(): bool { return $this->showValues; } /** * Get enableSearch. * @return bool */ public function isEnableSearch(): bool { return $this->enableSearch; } /** * Get visible. * @return bool */ public function isVisible(): bool { return $this->visible; } /** * Accessor for time settings value object. * @return TimeFieldGeneralSettings */ public function getTimeSettings(): TimeFieldGeneralSettings { return $this->timeSettings; } /** * Get the phone format. * * @return string */ public function getPhoneFormat(): string { return $this->phoneFormat; } /** * Set the phone format. * * @param string $format */ public function setPhoneFormat(string $format): void { $this->phoneFormat = $format; } /** * Get the phone auto-detect setting. * * @return bool */ public function isPhoneAutoDetect(): bool { return $this->phoneAutoDetect; } /** * Set the phone auto-detect setting. * * @param bool|null $val */ public function setPhoneAutoDetect(?bool $val): void { $this->phoneAutoDetect = (bool)$val; } /** * Get the minimum value. * * @return float|null */ public function getMinValue(): ?float { return $this->minValue; } /** * Set the minimum value. * * @param float|null $minValue */ public function setMinValue(?float $minValue): void { $this->minValue = $minValue; } /** * Get the maximum value. * * @return float|null */ public function getMaxValue(): ?float { return $this->maxValue; } /** * Set the maximum value. * * @param float|null $maxValue */ public function setMaxValue(?float $maxValue): void { $this->maxValue = $maxValue; } /** * Get the step value. * * @return float */ public function getStep(): float { return $this->step; } /** * Set the step value. * * @param float $step */ public function setStep(float $step): void { $this->step = $step; } /** * Get the number format. * * @return string */ public function getNumberFormat(): string { return $this->numberFormat; } /** * Set the number format. * * @param string $numberFormat */ public function setNumberFormat(string $numberFormat): void { $this->numberFormat = $numberFormat; } /** * @return array */ public function toArray(): array { return array_merge( [ 'label' => $this->getLabel(), 'required' => $this->isRequired(), 'placeholder' => $this->getPlaceholder(), 'hideLabel' => $this->isHideLabel(), 'readOnly' => $this->isReadOnly(), 'description' => $this->getDescription(), 'requiredMessage' => $this->getRequiredMessage(), 'cssClasses' => $this->getCssClasses(), 'shuffleOptions' => $this->isShuffleOptions(), 'showValues' => $this->isShowValues(), 'enableSearch' => $this->isEnableSearch(), 'phoneFormat' => $this->getPhoneFormat(), 'phoneAutoDetect' => $this->isPhoneAutoDetect(), 'minValue' => $this->getMinValue(), 'maxValue' => $this->getMaxValue(), 'step' => $this->getStep(), 'numberFormat' => $this->getNumberFormat(), 'visible' => $this->isVisible(), ], $this->timeSettings->toArray() ); } }