@@ -38,7 +38,6 @@ final class Configuration
38
38
* @param array<string, array{string, string}> $excludedFilesWithContents Array of tuple
39
39
* with the first argument being the file path and
40
40
* the second its contents
41
- * @param bool $tagDeclarationsAsInternal Whether a @internal tag should be added to the symbols declarations.
42
41
*/
43
42
public function __construct (
44
43
private ?string $ path ,
@@ -47,8 +46,7 @@ public function __construct(
47
46
private array $ filesWithContents ,
48
47
private array $ excludedFilesWithContents ,
49
48
private Patcher $ patcher ,
50
- private SymbolsConfiguration $ symbolsConfiguration ,
51
- private bool $ tagDeclarationsAsInternal ,
49
+ private SymbolsConfiguration $ symbolsConfiguration
52
50
) {
53
51
self ::validatePrefix ($ prefix );
54
52
@@ -84,7 +82,6 @@ public function withPrefix(string $prefix): self
84
82
$ this ->excludedFilesWithContents ,
85
83
$ this ->patcher ,
86
84
$ this ->symbolsConfiguration ,
87
- $ this ->tagDeclarationsAsInternal ,
88
85
);
89
86
}
90
87
@@ -109,7 +106,6 @@ public function withFilesWithContents(array $filesWithContents): self
109
106
$ this ->excludedFilesWithContents ,
110
107
$ this ->patcher ,
111
108
$ this ->symbolsConfiguration ,
112
- $ this ->tagDeclarationsAsInternal ,
113
109
);
114
110
}
115
111
@@ -139,7 +135,6 @@ public function withPatcher(Patcher $patcher): self
139
135
$ this ->excludedFilesWithContents ,
140
136
$ patcher ,
141
137
$ this ->symbolsConfiguration ,
142
- $ this ->tagDeclarationsAsInternal ,
143
138
);
144
139
}
145
140
@@ -153,11 +148,6 @@ public function getSymbolsConfiguration(): SymbolsConfiguration
153
148
return $ this ->symbolsConfiguration ;
154
149
}
155
150
156
- public function shouldTagDeclarationsAsInternal (): bool
157
- {
158
- return $ this ->tagDeclarationsAsInternal ;
159
- }
160
-
161
151
private static function validatePrefix (string $ prefix ): void
162
152
{
163
153
if (1 !== preg_match (self ::PREFIX_PATTERN , $ prefix )) {
0 commit comments