| Total Complexity | 2 |
| Total Lines | 54 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 7 | class Button extends Component |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * The visible label (text) for the button. |
||
| 11 | * |
||
| 12 | * @var string |
||
| 13 | */ |
||
| 14 | public $label; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * The button type ('button', 'submit', 'reset'). Similar to the html type |
||
| 18 | * attribute but with a default value. |
||
| 19 | * |
||
| 20 | * @var string |
||
| 21 | */ |
||
| 22 | public $type; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * The button style theme. One of the available AdminLTE theme: primary, |
||
| 26 | * secondary, info, warning, danger, success, dark, etc. |
||
| 27 | * |
||
| 28 | * @var string |
||
| 29 | */ |
||
| 30 | public $theme; |
||
| 31 | |||
| 32 | /** |
||
| 33 | * A fontawesome icon for the button. |
||
| 34 | * |
||
| 35 | * @var string |
||
| 36 | */ |
||
| 37 | public $icon; |
||
| 38 | |||
| 39 | /** |
||
| 40 | * Create a new component instance. |
||
| 41 | * |
||
| 42 | * @return void |
||
| 43 | */ |
||
| 44 | 1 | public function __construct( |
|
| 51 | 1 | } |
|
| 52 | |||
| 53 | /** |
||
| 54 | * Get the view / contents that represent the component. |
||
| 55 | * |
||
| 56 | * @return \Illuminate\View\View|string |
||
| 57 | */ |
||
| 58 | 1 | public function render() |
|
| 63 |