defaultValue = $defaultValue; $this->limitMaxLength = $limitMaxLength; $this->maxLength = $maxLength; $this->labelPosition = $labelPosition; $this->noDuplicates = $noDuplicates; $this->inputPrefix = $inputPrefix; $this->inputSuffix = $inputSuffix; } /** * Get the default value. * * @return string */ public function getDefaultValue(): string { return $this->defaultValue; } /** * Set the default value. * * @param string $defaultValue */ public function setDefaultValue(string $defaultValue): void { $this->defaultValue = $defaultValue; } /** * Check if maximum length limit is enabled. * * @return bool */ public function isLimitMaxLength(): bool { return $this->limitMaxLength; } /** * Set the limit maximum length setting. * * @param bool $limitMaxLength */ public function setLimitMaxLength(bool $limitMaxLength): void { $this->limitMaxLength = $limitMaxLength; } /** * Get the maximum length. * * @return int */ public function getMaxLength(): int { return $this->maxLength; } /** * Set the maximum length setting. * * @param int $maxLength */ public function setMaxLength(int $maxLength): void { $this->maxLength = $maxLength; } /** * Get the label position. * * @return string */ public function getLabelPosition(): string { return $this->labelPosition; } /** * Set the label position setting. * * @param string $labelPosition */ public function setLabelPosition(string $labelPosition): void { $this->labelPosition = $labelPosition; } /** * Check if duplicates are not allowed. * * @return bool */ public function isNoDuplicates(): bool { return $this->noDuplicates; } /** * Set the noDuplicates setting. * * @param bool $noDuplicates */ public function setNoDuplicates(bool $noDuplicates): void { $this->noDuplicates = $noDuplicates; } /** * Get the field prefix. * * @return string */ public function getInputPrefix(): string { return $this->inputPrefix; } /** * Set the field prefix. * * @param string $prefix */ public function setInputPrefix(string $prefix): void { $this->inputPrefix = $prefix; } /** * Get the field suffix. * * @return string */ public function getInputSuffix(): string { return $this->inputSuffix; } /** * Set the field suffix. * * @param string $suffix */ public function setInputSuffix(string $suffix): void { $this->inputSuffix = $suffix; } /** * Convert the advanced settings to an array. * * @return array */ public function toArray(): array { return [ 'defaultValue' => $this->getDefaultValue(), 'limitMaxLength' => $this->isLimitMaxLength(), 'maxLength' => $this->getMaxLength(), 'labelPosition' => $this->getLabelPosition(), 'noDuplicates' => $this->isNoDuplicates(), 'inputPrefix' => $this->getInputPrefix(), 'inputSuffix' => $this->getInputSuffix(), ]; } }