1 | <?php |
||
5 | class Number |
||
6 | { |
||
7 | |||
8 | /** |
||
9 | * indicates that the HTML input type is 'number' whose value is a decimal (float) |
||
10 | */ |
||
11 | public const TYPE_FLOAT = 'decimal'; |
||
12 | |||
13 | /** |
||
14 | * indicates that the HTML input type is 'number' whose value is an integer (whole number) |
||
15 | */ |
||
16 | public const TYPE_INT = 'integer'; |
||
17 | |||
18 | /** |
||
19 | * indicates that the HTML input type is 'range' |
||
20 | */ |
||
21 | public const TYPE_RANGE = 'range'; |
||
22 | |||
23 | |||
24 | /** |
||
25 | * @var array |
||
26 | */ |
||
27 | private $valid_type_options; |
||
28 | |||
29 | |||
30 | public function __construct() |
||
41 | |||
42 | |||
43 | /** |
||
44 | * @param bool $constants_only |
||
45 | * @return array |
||
46 | */ |
||
47 | public function validTypeOptions(bool $constants_only = false): array |
||
53 | } |
||
54 |