1 | <?php |
||
11 | class Input extends BaseElement { |
||
12 | |||
13 | /** |
||
14 | * @var string |
||
15 | */ |
||
16 | protected $tag = 'input'; |
||
17 | |||
18 | /** |
||
19 | * @var array |
||
20 | */ |
||
21 | protected $attributes = [ |
||
22 | 'type' => 'text', |
||
23 | ]; |
||
24 | |||
25 | |||
26 | /** |
||
27 | * @return null|string |
||
28 | */ |
||
29 | public function getType() { |
||
32 | |||
33 | |||
34 | /** |
||
35 | * Alias of $this->setAttribute('type' 'text'); |
||
36 | * |
||
37 | * @param string $type |
||
38 | * @return $this |
||
39 | */ |
||
40 | public function setType($type) { |
||
44 | |||
45 | |||
46 | /** |
||
47 | * @param $value |
||
48 | * @return $this |
||
49 | */ |
||
50 | public function setValue($value) { |
||
54 | |||
55 | |||
56 | /** |
||
57 | * @inheritdoc |
||
58 | */ |
||
59 | public function handle(FormData $data) { |
||
63 | |||
64 | } |