Total Complexity | 2 |
Total Lines | 26 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 0 |
1 | <?php |
||
24 | class Button extends Attributes |
||
25 | { |
||
26 | /** |
||
27 | * __construct |
||
28 | * |
||
29 | * @param array $attributes array of attribute name => value pairs for button tag. |
||
30 | * Pass the button text as 'value' attribute. |
||
31 | */ |
||
32 | 4 | public function __construct($attributes = array()) |
|
33 | { |
||
34 | 4 | parent::__construct($attributes); |
|
35 | 4 | } |
|
36 | |||
37 | /** |
||
38 | * render a button |
||
39 | * |
||
40 | * @return string |
||
41 | */ |
||
42 | 3 | public function render() |
|
50 | } |
||
51 | } |
||
52 |