1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
declare(strict_types=1); |
4
|
|
|
|
5
|
|
|
/* |
6
|
|
|
* This file is part of the humbug/php-scoper package. |
7
|
|
|
* |
8
|
|
|
* Copyright (c) 2017 Théo FIDRY <[email protected]>, |
9
|
|
|
* Pádraic Brady <[email protected]> |
10
|
|
|
* |
11
|
|
|
* For the full copyright and license information, please view the LICENSE |
12
|
|
|
* file that was distributed with this source code. |
13
|
|
|
*/ |
14
|
|
|
|
15
|
|
|
namespace Humbug\PhpScoper\Configuration; |
16
|
|
|
|
17
|
|
|
// TODO: make it an enum once in PHP 8.1 |
18
|
|
|
final class ConfigurationKeys |
19
|
|
|
{ |
20
|
|
|
public const PREFIX_KEYWORD = 'prefix'; |
21
|
|
|
public const EXCLUDED_FILES_KEYWORD = 'exclude-files'; |
22
|
|
|
public const FINDER_KEYWORD = 'finders'; |
23
|
|
|
public const PATCHERS_KEYWORD = 'patchers'; |
24
|
|
|
public const WHITELIST_KEYWORD = 'whitelist'; |
25
|
|
|
|
26
|
|
|
public const EXPOSE_GLOBAL_CONSTANTS_KEYWORD = 'expose-global-constants'; |
27
|
|
|
public const EXPOSE_GLOBAL_CLASSES_KEYWORD = 'expose-global-classes'; |
28
|
|
|
public const EXPOSE_GLOBAL_FUNCTIONS_KEYWORD = 'expose-global-functions'; |
29
|
|
|
|
30
|
|
|
public const EXPOSE_NAMESPACES_KEYWORD = 'expose-namespaces'; |
31
|
|
|
public const EXPOSE_CLASSES_SYMBOLS_KEYWORD = 'expose-classes'; |
32
|
|
|
public const EXPOSE_FUNCTIONS_SYMBOLS_KEYWORD = 'expose-functions'; |
33
|
|
|
public const EXPOSE_CONSTANTS_SYMBOLS_KEYWORD = 'expose-constants'; |
34
|
|
|
|
35
|
|
|
public const EXCLUDE_NAMESPACES_KEYWORD = 'exclude-namespaces'; |
36
|
|
|
public const CLASSES_INTERNAL_SYMBOLS_KEYWORD = 'exclude-classes'; |
37
|
|
|
public const FUNCTIONS_INTERNAL_SYMBOLS_KEYWORD = 'exclude-functions'; |
38
|
|
|
public const CONSTANTS_INTERNAL_SYMBOLS_KEYWORD = 'exclude-constants'; |
39
|
|
|
|
40
|
|
|
public const KEYWORDS = [ |
41
|
|
|
self::PREFIX_KEYWORD, |
42
|
|
|
self::EXCLUDED_FILES_KEYWORD, |
43
|
|
|
self::FINDER_KEYWORD, |
44
|
|
|
self::PATCHERS_KEYWORD, |
45
|
|
|
self::WHITELIST_KEYWORD, |
46
|
|
|
self::EXPOSE_GLOBAL_CONSTANTS_KEYWORD, |
47
|
|
|
self::EXPOSE_GLOBAL_CLASSES_KEYWORD, |
48
|
|
|
self::EXPOSE_GLOBAL_FUNCTIONS_KEYWORD, |
49
|
|
|
self::EXPOSE_NAMESPACES_KEYWORD, |
50
|
|
|
self::EXPOSE_CLASSES_SYMBOLS_KEYWORD, |
51
|
|
|
self::EXPOSE_FUNCTIONS_SYMBOLS_KEYWORD, |
52
|
|
|
self::EXPOSE_CONSTANTS_SYMBOLS_KEYWORD, |
53
|
|
|
self::EXCLUDE_NAMESPACES_KEYWORD, |
54
|
|
|
self::CLASSES_INTERNAL_SYMBOLS_KEYWORD, |
55
|
|
|
self::FUNCTIONS_INTERNAL_SYMBOLS_KEYWORD, |
56
|
|
|
self::CONSTANTS_INTERNAL_SYMBOLS_KEYWORD, |
57
|
|
|
]; |
58
|
|
|
|
59
|
|
|
private function __construct() |
60
|
|
|
{ |
61
|
|
|
} |
62
|
|
|
} |
63
|
|
|
|