1 | <?php |
||
2 | |||
3 | namespace ByTIC\Hello\Utility; |
||
4 | |||
5 | /** |
||
6 | * Class ThemeHelper |
||
7 | * @package ByTIC\Hello\Utility |
||
8 | */ |
||
9 | class ThemeHelper |
||
10 | { |
||
11 | protected static $theme = 'bootstrap5'; |
||
12 | |||
13 | /** |
||
14 | * @param null $new |
||
0 ignored issues
–
show
Documentation
Bug
introduced
by
![]() |
|||
15 | * @return string|void |
||
16 | */ |
||
17 | public static function theme($new = null) |
||
18 | { |
||
19 | if ($new !== null) { |
||
0 ignored issues
–
show
|
|||
20 | return static::setTheme($new); |
||
21 | } |
||
22 | return static::$theme; |
||
23 | } |
||
24 | |||
25 | /** |
||
26 | * @param string $new |
||
27 | */ |
||
28 | protected static function setTheme($new) |
||
29 | { |
||
30 | static::$theme = $new; |
||
31 | } |
||
32 | } |
||
33 |