Total Complexity | 3 |
Total Lines | 28 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
12 | final class ThemeState |
||
13 | { |
||
14 | 130 | public function __construct( |
|
17 | 130 | } |
|
18 | |||
19 | /** |
||
20 | * Set the specified view theme. |
||
21 | * |
||
22 | * @param Theme|null $theme |
||
23 | * @return $this |
||
24 | */ |
||
25 | 1 | public function setTheme(?Theme $theme): self |
|
26 | { |
||
27 | 1 | $this->theme = $theme; |
|
28 | |||
29 | 1 | return $this; |
|
30 | } |
||
31 | |||
32 | /** |
||
33 | * Gets the current theme or null if not set |
||
34 | * |
||
35 | * @return Theme|null |
||
36 | */ |
||
37 | 65 | public function getTheme(): ?Theme |
|
40 | } |
||
41 | } |
||
42 |