Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
Total | n/a |
0 / 0 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
1 | <?php |
2 | |
3 | declare(strict_types=1); |
4 | |
5 | namespace oat\tao\model\preview; |
6 | |
7 | use oat\oatbox\AbstractRegistry; |
8 | use oat\tao\model\modules\DynamicModule; |
9 | |
10 | /** |
11 | * Interface PreviewerRegistryServiceInterface |
12 | * |
13 | * @package oat\tao\model\preview |
14 | * |
15 | * @author Andrew Shapiro <shpr.andrew@gmail.com> |
16 | */ |
17 | interface PreviewerRegistryServiceInterface |
18 | { |
19 | /** |
20 | * @return AbstractRegistry |
21 | */ |
22 | public function getRegistry(): AbstractRegistry; |
23 | |
24 | /** |
25 | * @param AbstractRegistry $registry |
26 | */ |
27 | public function setRegistry(AbstractRegistry $registry): void; |
28 | |
29 | /** |
30 | * @return array |
31 | */ |
32 | public function getAdapters(): array; |
33 | |
34 | /** |
35 | * @param DynamicModule $module |
36 | * |
37 | * @return bool |
38 | */ |
39 | public function registerAdapter(DynamicModule $module): bool; |
40 | |
41 | /** |
42 | * @param string $moduleId |
43 | * |
44 | * @return bool |
45 | */ |
46 | public function unregisterAdapter(string $moduleId): bool; |
47 | |
48 | /** |
49 | * @return array |
50 | */ |
51 | public function getPlugins(): array; |
52 | |
53 | /** |
54 | * @param DynamicModule $module |
55 | * |
56 | * @return bool |
57 | */ |
58 | public function registerPlugin(DynamicModule $module): bool; |
59 | |
60 | /** |
61 | * @param string $module |
62 | * |
63 | * @return bool |
64 | */ |
65 | public function unregisterPlugin(string $module): bool; |
66 | } |