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