Total Complexity | 4 |
Total Lines | 23 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
20 | trait AutoGeneratesModuleId |
||
21 | { |
||
22 | protected static ?string $moduleId = null; |
||
23 | |||
24 | public static function getId(): string |
||
25 | { |
||
26 | if (null === static::$moduleId) { |
||
27 | static::$moduleId = static::moduleIdOfThisClass(); |
||
28 | } |
||
29 | |||
30 | return static::$moduleId; |
||
31 | } |
||
32 | |||
33 | protected static function moduleIdOfThisClass(): string |
||
43 | ); |
||
44 | } |
||
46 |