Total Complexity | 6 |
Total Lines | 46 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
7 | final class AppModule |
||
8 | { |
||
9 | 7 | public function __construct( |
|
10 | private string $moduleName, |
||
11 | private string $facadeClass, |
||
12 | private ?string $factoryClass = null, |
||
13 | private ?string $configClass = null, |
||
14 | private ?string $dependencyProviderClass = null, |
||
15 | ) { |
||
16 | 7 | } |
|
17 | |||
18 | 5 | public function moduleName(): string |
|
19 | { |
||
20 | 5 | return $this->moduleName; |
|
21 | } |
||
22 | |||
23 | /** |
||
24 | * @return class-string |
||
25 | */ |
||
26 | 7 | public function facadeClass(): string |
|
27 | { |
||
28 | 7 | return $this->facadeClass; |
|
29 | } |
||
30 | |||
31 | /** |
||
32 | * @return ?class-string |
||
|
|||
33 | */ |
||
34 | 5 | public function factoryClass(): ?string |
|
37 | } |
||
38 | |||
39 | /** |
||
40 | * @return ?class-string |
||
41 | */ |
||
42 | 5 | public function configClass(): ?string |
|
43 | { |
||
44 | 5 | return $this->configClass; |
|
45 | } |
||
46 | |||
47 | /** |
||
48 | * @return ?class-string |
||
49 | */ |
||
50 | 5 | public function dependencyProviderClass(): ?string |
|
53 | } |
||
54 | } |
||
55 |