| 1 | <?php |
||
| 5 | class Number extends NamedFormElement |
||
| 6 | { |
||
| 7 | /** |
||
| 8 | * @var int |
||
| 9 | */ |
||
| 10 | protected $min; |
||
| 11 | |||
| 12 | /** |
||
| 13 | * @var int |
||
| 14 | */ |
||
| 15 | protected $max; |
||
| 16 | |||
| 17 | /** |
||
| 18 | * @var int |
||
| 19 | */ |
||
| 20 | protected $step; |
||
| 21 | |||
| 22 | /** |
||
| 23 | * @return int |
||
| 24 | */ |
||
| 25 | public function getMin() |
||
| 29 | |||
| 30 | /** |
||
| 31 | * @param int $min |
||
| 32 | * |
||
| 33 | * @return $this |
||
| 34 | */ |
||
| 35 | public function setMin($min) |
||
| 41 | |||
| 42 | /** |
||
| 43 | * @return int |
||
| 44 | */ |
||
| 45 | public function getMax() |
||
| 49 | |||
| 50 | /** |
||
| 51 | * @param int $max |
||
| 52 | * |
||
| 53 | * @return $this |
||
| 54 | */ |
||
| 55 | public function setMax($max) |
||
| 61 | |||
| 62 | /** |
||
| 63 | * @return string |
||
| 64 | */ |
||
| 65 | public function getStep() |
||
| 69 | |||
| 70 | /** |
||
| 71 | * @param int $step |
||
| 72 | * |
||
| 73 | * @return $this |
||
| 74 | */ |
||
| 75 | public function setStep($step) |
||
| 81 | |||
| 82 | /** |
||
| 83 | * @return array |
||
| 84 | */ |
||
| 85 | public function toArray() |
||
| 93 | |||
| 94 | /** |
||
| 95 | * @param mixed $value |
||
| 96 | * |
||
| 97 | * @return null|int |
||
| 98 | */ |
||
| 99 | protected function prepareValue($value) |
||
| 109 | } |
||
| 110 |