Total Complexity | 5 |
Total Lines | 36 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
18 | trait ModuleTrait |
||
19 | { |
||
20 | protected ?string $baseDir = null; |
||
21 | protected ?string $moduleName = null; |
||
22 | |||
23 | public function getBaseDir(): string |
||
24 | { |
||
25 | if (null === $this->baseDir) { |
||
26 | $this->buildInfo(); |
||
27 | } |
||
28 | |||
29 | return $this->baseDir; |
||
30 | } |
||
31 | |||
32 | public function getName(): string |
||
39 | } |
||
40 | |||
41 | protected function buildInfo() |
||
54 | } |
||
55 | } |
||
56 |