Total Complexity | 3 |
Total Lines | 20 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
5 | class ProductPropertiesUtil |
||
6 | { |
||
7 | public const PROPERTIES_FILE_PATH = "src/Engine/Resources/product-info.properties"; |
||
8 | public const VERSION_PROPERTY = "jabe.version"; |
||
9 | private static $INSTANCE; |
||
10 | |||
11 | public static function instance(): array |
||
12 | { |
||
13 | if (self::$INSTANCE === null) { |
||
14 | self::$INSTANCE = PropertiesUtil::getProperties(self::PROPERTIES_FILE_PATH); |
||
15 | } |
||
16 | return self::$INSTANCE; |
||
17 | } |
||
18 | |||
19 | /** |
||
20 | * @return the current version of the product |
||
21 | */ |
||
22 | public static function getProductVersion(): string |
||
25 | } |
||
26 | } |
||
27 |