1
|
|
|
<?php |
2
|
|
|
|
3
|
|
|
declare(strict_types=1); |
4
|
|
|
|
5
|
|
|
namespace Doctrine\Annotations; |
6
|
|
|
|
7
|
|
|
/** |
8
|
|
|
* A list of annotations that are implicitly ignored during the parsing process. |
9
|
|
|
* |
10
|
|
|
* All names are case sensitive. |
11
|
|
|
*/ |
12
|
|
|
final class ImplicitlyIgnoredAnnotationNames |
13
|
|
|
{ |
14
|
|
|
private const Reserved = [ |
15
|
|
|
'Annotation' => true, |
16
|
|
|
'Attribute' => true, |
17
|
|
|
'Attributes' => true, |
18
|
|
|
/* Can we enable this? 'Enum' => true, */ |
19
|
|
|
'Required' => true, |
20
|
|
|
'Target' => true, |
21
|
|
|
]; |
22
|
|
|
|
23
|
|
|
private const WidelyUsedNonStandard = [ |
24
|
|
|
'fix' => true, |
25
|
|
|
'fixme' => true, |
26
|
|
|
'override' => true, |
27
|
|
|
]; |
28
|
|
|
|
29
|
|
|
private const PhpDocumentor1 = [ |
30
|
|
|
'abstract' => true, |
31
|
|
|
'access' => true, |
32
|
|
|
'code' => true, |
33
|
|
|
'deprec' => true, |
34
|
|
|
'endcode' => true, |
35
|
|
|
'exception' => true, |
36
|
|
|
'final' => true, |
37
|
|
|
'ingroup' => true, |
38
|
|
|
'inheritdoc' => true, |
39
|
|
|
'inheritDoc' => true, |
40
|
|
|
'magic' => true, |
41
|
|
|
'name' => true, |
42
|
|
|
'private' => true, |
43
|
|
|
'static' => true, |
44
|
|
|
'staticvar' => true, |
45
|
|
|
'staticVar' => true, |
46
|
|
|
'toc' => true, |
47
|
|
|
'tutorial' => true, |
48
|
|
|
'throw' => true, |
49
|
|
|
]; |
50
|
|
|
|
51
|
|
|
private const PhpDocumentor2 = [ |
52
|
|
|
'api' => true, |
53
|
|
|
'author' => true, |
54
|
|
|
'category' => true, |
55
|
|
|
'copyright' => true, |
56
|
|
|
'deprecated' => true, |
57
|
|
|
'example' => true, |
58
|
|
|
'filesource' => true, |
59
|
|
|
'global' => true, |
60
|
|
|
'ignore' => true, |
61
|
|
|
/* Can we enable this? 'index' => true, */ |
62
|
|
|
'internal' => true, |
63
|
|
|
'license' => true, |
64
|
|
|
'link' => true, |
65
|
|
|
'method' => true, |
66
|
|
|
'package' => true, |
67
|
|
|
'param' => true, |
68
|
|
|
'property' => true, |
69
|
|
|
'property-read' => true, |
70
|
|
|
'property-write' => true, |
71
|
|
|
'return' => true, |
72
|
|
|
'see' => true, |
73
|
|
|
'since' => true, |
74
|
|
|
'source' => true, |
75
|
|
|
'subpackage' => true, |
76
|
|
|
'throws' => true, |
77
|
|
|
'todo' => true, |
78
|
|
|
'TODO' => true, |
79
|
|
|
'usedby' => true, |
80
|
|
|
'uses' => true, |
81
|
|
|
'var' => true, |
82
|
|
|
'version' => true, |
83
|
|
|
]; |
84
|
|
|
|
85
|
|
|
private const PHPUnit = [ |
86
|
|
|
'codeCoverageIgnore' => true, |
87
|
|
|
'codeCoverageIgnoreEnd' => true, |
88
|
|
|
'codeCoverageIgnoreStart' => true, |
89
|
|
|
]; |
90
|
|
|
|
91
|
|
|
private const PhpCheckStyle = [ |
92
|
|
|
'SuppressWarnings' => true, |
93
|
|
|
]; |
94
|
|
|
|
95
|
|
|
private const PhpStorm = [ |
96
|
|
|
'noinspection' => true, |
97
|
|
|
]; |
98
|
|
|
|
99
|
|
|
private const PEAR = [ |
100
|
|
|
'package_version' => true, |
101
|
|
|
]; |
102
|
|
|
|
103
|
|
|
private const PlainUML = [ |
104
|
|
|
'startuml' => true, |
105
|
|
|
'enduml' => true, |
106
|
|
|
]; |
107
|
|
|
|
108
|
|
|
private const Symfony = [ |
109
|
|
|
'experimental' => true, |
110
|
|
|
]; |
111
|
|
|
|
112
|
|
|
private const PhpCodeSniffer = [ |
113
|
|
|
'codingStandardsIgnoreStart' => true, |
114
|
|
|
'codingStandardsIgnoreEnd' => true, |
115
|
|
|
]; |
116
|
|
|
|
117
|
|
|
private const SlevomatCodingStandard = [ |
118
|
|
|
'phpcsSuppress' => true, |
119
|
|
|
]; |
120
|
|
|
|
121
|
|
|
public const LIST = self::Reserved |
122
|
|
|
+ self::WidelyUsedNonStandard |
123
|
|
|
+ self::PhpDocumentor1 |
124
|
|
|
+ self::PhpDocumentor2 |
125
|
|
|
+ self::PHPUnit |
126
|
|
|
+ self::PhpCheckStyle |
127
|
|
|
+ self::PhpStorm |
128
|
|
|
+ self::PEAR |
129
|
|
|
+ self::PlainUML |
130
|
|
|
+ self::Symfony |
131
|
|
|
+ self::SlevomatCodingStandard |
132
|
|
|
+ self::PhpCodeSniffer; |
133
|
|
|
|
134
|
|
|
private function __construct() |
135
|
|
|
{ |
136
|
|
|
} |
137
|
|
|
} |
138
|
|
|
|