|
1
|
|
|
<?php |
|
2
|
|
|
|
|
3
|
|
|
declare(strict_types=1); |
|
4
|
|
|
|
|
5
|
|
|
namespace Humbug\PhpScoper\Configuration; |
|
6
|
|
|
|
|
7
|
|
|
// TODO: make it an enum once in PHP 8.1 |
|
8
|
|
|
final class ConfigurationKeys |
|
9
|
|
|
{ |
|
10
|
|
|
public const PREFIX_KEYWORD = 'prefix'; |
|
11
|
|
|
public const WHITELISTED_FILES_KEYWORD = 'files-whitelist'; |
|
12
|
|
|
public const FINDER_KEYWORD = 'finders'; |
|
13
|
|
|
public const PATCHERS_KEYWORD = 'patchers'; |
|
14
|
|
|
public const WHITELIST_KEYWORD = 'whitelist'; |
|
15
|
|
|
|
|
16
|
|
|
public const EXPOSE_GLOBAL_CONSTANTS_KEYWORD = 'expose-global-constants'; |
|
17
|
|
|
public const EXPOSE_GLOBAL_CLASSES_KEYWORD = 'expose-global-classes'; |
|
18
|
|
|
public const EXPOSE_GLOBAL_FUNCTIONS_KEYWORD = 'expose-global-functions'; |
|
19
|
|
|
public const EXPOSE_NAMESPACES_KEYWORD = 'expose-namespaces'; |
|
20
|
|
|
public const EXPOSE_CLASSES_SYMBOLS_KEYWORD = 'expose-classes'; |
|
21
|
|
|
public const EXPOSE_FUNCTIONS_SYMBOLS_KEYWORD = 'expose-functions'; |
|
22
|
|
|
public const EXPOSE_CONSTANTS_SYMBOLS_KEYWORD = 'expose-constants'; |
|
23
|
|
|
|
|
24
|
|
|
public const EXCLUDE_NAMESPACES_KEYWORD = 'exclude-namespaces'; |
|
25
|
|
|
public const CLASSES_INTERNAL_SYMBOLS_KEYWORD = 'exclude-classes'; |
|
26
|
|
|
public const FUNCTIONS_INTERNAL_SYMBOLS_KEYWORD = 'exclude-functions'; |
|
27
|
|
|
public const CONSTANTS_INTERNAL_SYMBOLS_KEYWORD = 'exclude-constants'; |
|
28
|
|
|
|
|
29
|
|
|
public const KEYWORDS = [ |
|
30
|
|
|
self::PREFIX_KEYWORD, |
|
31
|
|
|
self::WHITELISTED_FILES_KEYWORD, |
|
32
|
|
|
self::FINDER_KEYWORD, |
|
33
|
|
|
self::PATCHERS_KEYWORD, |
|
34
|
|
|
self::WHITELIST_KEYWORD, |
|
35
|
|
|
self::EXPOSE_GLOBAL_CONSTANTS_KEYWORD, |
|
36
|
|
|
self::EXPOSE_GLOBAL_CLASSES_KEYWORD, |
|
37
|
|
|
self::EXPOSE_GLOBAL_FUNCTIONS_KEYWORD, |
|
38
|
|
|
self::EXPOSE_NAMESPACES_KEYWORD, |
|
39
|
|
|
self::EXPOSE_CLASSES_SYMBOLS_KEYWORD, |
|
40
|
|
|
self::EXPOSE_FUNCTIONS_SYMBOLS_KEYWORD, |
|
41
|
|
|
self::EXPOSE_CONSTANTS_SYMBOLS_KEYWORD, |
|
42
|
|
|
self::EXCLUDE_NAMESPACES_KEYWORD, |
|
43
|
|
|
self::CLASSES_INTERNAL_SYMBOLS_KEYWORD, |
|
44
|
|
|
self::FUNCTIONS_INTERNAL_SYMBOLS_KEYWORD, |
|
45
|
|
|
self::CONSTANTS_INTERNAL_SYMBOLS_KEYWORD, |
|
46
|
|
|
]; |
|
47
|
|
|
|
|
48
|
|
|
private function __construct() {} |
|
49
|
|
|
} |
|
50
|
|
|
|