1 | <?php |
||
5 | class Button |
||
6 | { |
||
7 | /** |
||
8 | * indicates that the HTML input type is 'button' |
||
9 | */ |
||
10 | public const TYPE_BUTTON = 'button'; |
||
11 | |||
12 | /** |
||
13 | * indicates that the HTML input type is 'reset' |
||
14 | */ |
||
15 | public const TYPE_BUTTON_RESET = 'reset'; |
||
16 | |||
17 | /** |
||
18 | * indicates that the HTML input type is 'submit' |
||
19 | */ |
||
20 | public const TYPE_BUTTON_SUBMIT = 'submit'; |
||
21 | |||
22 | |||
23 | /** |
||
24 | * @var array |
||
25 | */ |
||
26 | private $valid_type_options; |
||
27 | |||
28 | |||
29 | public function __construct() |
||
40 | |||
41 | |||
42 | /** |
||
43 | * @param bool $constants_only |
||
44 | * @return array |
||
45 | */ |
||
46 | public function validTypeOptions(bool $constants_only = false): array |
||
52 | } |
||
53 |