| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 18 | public function __construct( |
||
| 19 | public string $host, |
||
| 20 | public string $appName, |
||
| 21 | public string $context, |
||
| 22 | ) { |
||
| 23 | /** @var class-string $appModuleClass */ |
||
| 24 | $appModuleClass = sprintf('%s\\Module\\AppModule', $this->appName); |
||
| 25 | $appModuleClassName = (string) (new ReflectionClass($appModuleClass))->getFileName(); |
||
| 26 | $appDir = dirname($appModuleClassName, 3); |
||
| 27 | assert(is_dir($appDir)); |
||
| 28 | $this->appDir = $appDir; |
||
| 29 | } |
||
| 31 |