@@ -80,9 +80,9 @@ public function getTagException(string $message, ?\Throwable $previous = null):
80
80
}
81
81
82
82
/**
83
- * @param non-empty-string $tag
84
- *
85
83
* @api
84
+ *
85
+ * @param non-empty-string $tag
86
86
*/
87
87
public function nextType (string $ tag , TypesParserInterface $ parser ): TypeStatement
88
88
{
@@ -98,53 +98,58 @@ public function nextOptionalType(TypesParserInterface $parser): ?TypeStatement
98
98
}
99
99
100
100
/**
101
+ * @api
102
+ *
101
103
* @param non-empty-string $tag
102
104
*
103
105
* @return non-empty-string
104
- * @api
105
106
*/
106
107
public function nextIdentifier (string $ tag ): string
107
108
{
108
109
return $ this ->apply (new IdentifierApplicator ($ tag ));
109
110
}
110
111
111
112
/**
112
- * @return non-empty-string|null
113
113
* @api
114
+ *
115
+ * @return non-empty-string|null
114
116
*/
115
117
public function nextOptionalIdentifier (): ?string
116
118
{
117
119
return $ this ->apply (new OptionalIdentifierApplicator ());
118
120
}
119
121
120
122
/**
123
+ * @api
124
+ *
121
125
* @param non-empty-string $tag
122
126
*
123
127
* @return non-empty-string
124
- * @api
125
128
*/
126
129
public function nextVariable (string $ tag ): string
127
130
{
128
131
return $ this ->apply (new VariableNameApplicator ($ tag ));
129
132
}
130
133
131
134
/**
132
- * @return non-empty-string|null
133
135
* @api
136
+ *
137
+ * @return non-empty-string|null
134
138
*/
135
139
public function nextOptionalVariable (): ?string
136
140
{
137
141
return $ this ->apply (new OptionalVariableNameApplicator ());
138
142
}
139
143
140
144
/**
145
+ * @api
146
+ *
141
147
* @template T of non-empty-string
142
148
*
143
149
* @param non-empty-string $tag
144
150
* @param T $value
145
151
*
146
152
* @return T
147
- * @api
148
153
*/
149
154
public function nextValue (string $ tag , string $ value ): string
150
155
{
@@ -153,12 +158,13 @@ public function nextValue(string $tag, string $value): string
153
158
}
154
159
155
160
/**
161
+ * @api
162
+ *
156
163
* @template T of non-empty-string
157
164
*
158
165
* @param T $value
159
166
*
160
167
* @return T|null
161
- * @api
162
168
*/
163
169
public function nextOptionalValue (string $ value ): ?string
164
170
{
0 commit comments