| 1 | <?php |
||
| 31 | class Label extends Common |
||
| 32 | { |
||
| 33 | /** |
||
| 34 | * the label of element |
||
| 35 | * |
||
| 36 | * @access private |
||
| 37 | * @var string |
||
| 38 | */ |
||
| 39 | private $_sLabel = null; |
||
| 40 | |||
| 41 | /** |
||
| 42 | * the value of element |
||
| 43 | * |
||
| 44 | * @access private |
||
| 45 | * @var string |
||
| 46 | */ |
||
| 47 | public function __construct(string $sLabel) |
||
| 51 | |||
| 52 | /** |
||
| 53 | * get the Label |
||
| 54 | * |
||
| 55 | * @access public |
||
| 56 | * @return string |
||
| 57 | */ |
||
| 58 | public function getLabel() : string |
||
| 62 | |||
| 63 | /** |
||
| 64 | * set the Label |
||
| 65 | * |
||
| 66 | * @access public |
||
| 67 | * @param string $sLabel Label of input; |
||
| 68 | * @return \Venus\lib\Form\Input |
||
| 69 | */ |
||
| 70 | public function setLabel(string $sLabel) : Input |
||
| 75 | |||
| 76 | /** |
||
| 77 | * get the <html> |
||
| 78 | * |
||
| 79 | * @access public |
||
| 80 | * @return string |
||
| 81 | */ |
||
| 82 | public function fetch() : string |
||
| 88 | } |
||
| 89 |