| 1 | <?php |
||
| 8 | class Input extends Base { |
||
| 9 | |||
| 10 | protected $tag = 'input'; |
||
| 11 | |||
| 12 | protected $type = 'text'; |
||
| 13 | |||
| 14 | |||
| 15 | /** |
||
| 16 | * @return string |
||
| 17 | */ |
||
| 18 | 1 | public function getType() { |
|
| 19 | 1 | if (empty($this->attributes['type'])) { |
|
| 20 | $this->attributes['type'] = $this->type; |
||
| 21 | } |
||
| 22 | |||
| 23 | 1 | return $this->attributes['type']; |
|
| 24 | } |
||
| 25 | |||
| 26 | |||
| 27 | /** |
||
| 28 | * @param string $type |
||
| 29 | * @return $this |
||
| 30 | */ |
||
| 31 | 8 | public function setType($type) { |
|
| 35 | |||
| 36 | |||
| 37 | /** |
||
| 38 | * @param $value |
||
| 39 | * @return $this |
||
| 40 | */ |
||
| 41 | 9 | public function setValue($value) { |
|
| 46 | |||
| 47 | |||
| 48 | /** |
||
| 49 | * |
||
| 50 | * @return string |
||
| 51 | */ |
||
| 52 | 1 | public function render() { |
|
| 56 | |||
| 57 | } |