Total Complexity | 5 |
Total Lines | 28 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
8 | class ThemePublisher |
||
9 | { |
||
10 | private Theme $themeInstance; |
||
11 | |||
12 | public function __construct(Theme $theme) |
||
13 | { |
||
14 | $this->setTheme($theme); |
||
15 | } |
||
16 | |||
17 | public function publish() |
||
25 | } |
||
26 | |||
27 | private function theme() : Theme |
||
28 | { |
||
29 | return $this->themeInstance; |
||
30 | } |
||
31 | |||
32 | private function setTheme(Theme $theme) : ThemePublisher |
||
36 | } |
||
37 | } |