Total Complexity | 4 |
Total Lines | 24 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php namespace Distilleries\FormBuilder\Helpers; |
||
3 | class StaticLabel { |
||
4 | |||
5 | const STATUS_OFFLINE = 0; |
||
6 | const STATUS_ONLINE = 1; |
||
7 | |||
8 | 30 | public static function yesNo($id = null) |
|
9 | { |
||
10 | $items = [ |
||
11 | 30 | self::STATUS_OFFLINE => trans('form-builder::form.no'), |
|
12 | 30 | self::STATUS_ONLINE => trans('form-builder::form.yes'), |
|
13 | ]; |
||
14 | |||
15 | 30 | return self::getLabel($items, $id); |
|
16 | |||
17 | } |
||
18 | |||
19 | 30 | public static function getLabel($items, $id = null) |
|
27 | } |
||
28 | } |