| | |
| | | protected int $maxLength; // of characters |
| | | protected int $min; |
| | | protected int $max; |
| | | /** |
| | | * @var float $step For number fields. Indicates the amount the number increases/decreases with the plus/minus buttons |
| | | */ |
| | | protected float $step; |
| | | protected string $subtype; |
| | | protected array $condition; |
| | | protected array $allowedSubtype = ['text', 'url','number','tel','email','number']; |
| | |
| | | } |
| | | } |
| | | |
| | | public function getName():string |
| | | { |
| | | return $this->name; |
| | | } |
| | | |
| | | public function setDescription(string $description):void |
| | | { |
| | | $this->description = $description; |
| | |
| | | { |
| | | return $this->max??null; |
| | | } |
| | | public function setStep(float $step):void |
| | | { |
| | | $this->step = $step; |
| | | } |
| | | public function getStep():?float |
| | | { |
| | | return $this->step??null; |
| | | } |
| | | public function setMaxLength(int $maxLength):void |
| | | { |
| | | $this->maxLength = $maxLength; |