| @@ 16-24 (lines=9) @@ | ||
| 13 | * |
|
| 14 | * @return Options |
|
| 15 | */ |
|
| 16 | public static function yesNo() |
|
| 17 | { |
|
| 18 | $data = [ |
|
| 19 | ['label' => __('Yes'), 'value' => 1], |
|
| 20 | ['label' => __('No'), 'value' => 0], |
|
| 21 | ]; |
|
| 22 | ||
| 23 | return new static($data); |
|
| 24 | } |
|
| 25 | ||
| 26 | /** |
|
| 27 | * Get options from a model. |
|
| @@ 76-84 (lines=9) @@ | ||
| 73 | * |
|
| 74 | * @return Options |
|
| 75 | */ |
|
| 76 | public static function trueFalse() |
|
| 77 | { |
|
| 78 | $data = [ |
|
| 79 | ['label' => __('True'), 'value' => 1], |
|
| 80 | ['label' => __('False'), 'value' => 0], |
|
| 81 | ]; |
|
| 82 | ||
| 83 | return new static($data); |
|
| 84 | } |
|
| 85 | ||
| 86 | /** |
|
| 87 | * Push an item onto the end of the collection. |
|