Total Complexity | 4 |
Total Lines | 35 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php # -*- coding: utf-8 -*- |
||
9 | class SingleSwitcher implements SiteSwitcher |
||
10 | { |
||
11 | /** |
||
12 | * @var bool |
||
13 | */ |
||
14 | private $switched = false; |
||
15 | |||
16 | /** |
||
17 | * Switch to blog if needed |
||
18 | * |
||
19 | * @param int $siteId |
||
20 | */ |
||
21 | public function switchToBlog(int $siteId) |
||
30 | } |
||
31 | |||
32 | /** |
||
33 | * Restore the current blog if needed |
||
34 | */ |
||
35 | public function restoreBlog() |
||
46 |