| 1 | <?php |
||
| 5 | class Number extends NamedElement |
||
| 6 | { |
||
| 7 | protected $type = 'number'; |
||
| 8 | |||
| 9 | protected $max; |
||
| 10 | |||
| 11 | protected $min = 0; |
||
| 12 | |||
| 13 | protected $step = 1; |
||
| 14 | |||
| 15 | /** |
||
| 16 | * @return string|int |
||
| 17 | */ |
||
| 18 | public function getMax() |
||
| 26 | |||
| 27 | protected function getDefaultMax() |
||
| 31 | |||
| 32 | /** |
||
| 33 | * @param int $value |
||
| 34 | * @return $this |
||
| 35 | */ |
||
| 36 | public function setMax(int $value) |
||
| 44 | |||
| 45 | /** |
||
| 46 | * @return int |
||
| 47 | */ |
||
| 48 | public function getMin() |
||
| 52 | |||
| 53 | /** |
||
| 54 | * @param int $value |
||
| 55 | * @return $this |
||
| 56 | */ |
||
| 57 | public function setMin(int $value) |
||
| 65 | |||
| 66 | /** |
||
| 67 | * @return int |
||
| 68 | */ |
||
| 69 | public function getStep() |
||
| 73 | |||
| 74 | /** |
||
| 75 | * @param int $value |
||
| 76 | * @return $this |
||
| 77 | */ |
||
| 78 | public function setStep(int $value) |
||
| 84 | |||
| 85 | protected function getDefaultValidationRules() |
||
| 91 | |||
| 92 | public function toArray() |
||
| 100 | } |
||
| 101 |