| @@ 18-25 (lines=8) @@ | ||
| 15 | * @param string|array $options |
|
| 16 | * @return static |
|
| 17 | */ |
|
| 18 | public static function make($options = []) |
|
| 19 | { |
|
| 20 | if (is_string($options)) { |
|
| 21 | return new static(['extend' => $options]); |
|
| 22 | } |
|
| 23 | ||
| 24 | return new static($options); |
|
| 25 | } |
|
| 26 | ||
| 27 | /** |
|
| 28 | * Make a raw button that does not extend anything. |
|
| @@ 33-40 (lines=8) @@ | ||
| 30 | * @param array $options |
|
| 31 | * @return static |
|
| 32 | */ |
|
| 33 | public static function raw($options = []) |
|
| 34 | { |
|
| 35 | if (is_string($options)) { |
|
| 36 | return new static(['text' => $options]); |
|
| 37 | } |
|
| 38 | ||
| 39 | return new static($options); |
|
| 40 | } |
|
| 41 | ||
| 42 | /** |
|
| 43 | * Set extend option value. |
|