@@ -189,79 +189,6 @@ public function setValue($mValue)
189
189
$ this ->mValue = $ mValue ;
190
190
}
191
191
192
- /**
193
- * @param array<array-key, array<array-key, RuleValueList>> $aSpaceSeparatedValues
194
- *
195
- * @return RuleValueList
196
- *
197
- * @deprecated will be removed in version 9.0
198
- * Old-Style 2-dimensional array given. Retained for (some) backwards-compatibility.
199
- * Use `setValue()` instead and wrap the value inside a RuleValueList if necessary.
200
- */
201
- public function setValues (array $ aSpaceSeparatedValues )
202
- {
203
- $ oSpaceSeparatedList = null ;
204
- if (count ($ aSpaceSeparatedValues ) > 1 ) {
205
- $ oSpaceSeparatedList = new RuleValueList (' ' , $ this ->iLineNo );
206
- }
207
- foreach ($ aSpaceSeparatedValues as $ aCommaSeparatedValues ) {
208
- $ oCommaSeparatedList = null ;
209
- if (count ($ aCommaSeparatedValues ) > 1 ) {
210
- $ oCommaSeparatedList = new RuleValueList (', ' , $ this ->iLineNo );
211
- }
212
- foreach ($ aCommaSeparatedValues as $ mValue ) {
213
- if (!$ oSpaceSeparatedList && !$ oCommaSeparatedList ) {
214
- $ this ->mValue = $ mValue ;
215
- return $ mValue ;
216
- }
217
- if ($ oCommaSeparatedList ) {
218
- $ oCommaSeparatedList ->addListComponent ($ mValue );
219
- } else {
220
- $ oSpaceSeparatedList ->addListComponent ($ mValue );
221
- }
222
- }
223
- if (!$ oSpaceSeparatedList ) {
224
- $ this ->mValue = $ oCommaSeparatedList ;
225
- return $ oCommaSeparatedList ;
226
- } else {
227
- $ oSpaceSeparatedList ->addListComponent ($ oCommaSeparatedList );
228
- }
229
- }
230
- $ this ->mValue = $ oSpaceSeparatedList ;
231
- return $ oSpaceSeparatedList ;
232
- }
233
-
234
- /**
235
- * @return array<int, array<int, RuleValueList>>
236
- *
237
- * @deprecated will be removed in version 9.0
238
- * Old-Style 2-dimensional array returned. Retained for (some) backwards-compatibility.
239
- * Use `getValue()` instead and check for the existence of a (nested set of) ValueList object(s).
240
- */
241
- public function getValues (): array
242
- {
243
- if (!$ this ->mValue instanceof RuleValueList) {
244
- return [[$ this ->mValue ]];
245
- }
246
- if ($ this ->mValue ->getListSeparator () === ', ' ) {
247
- return [$ this ->mValue ->getListComponents ()];
248
- }
249
- $ aResult = [];
250
- foreach ($ this ->mValue ->getListComponents () as $ mValue ) {
251
- if (!$ mValue instanceof RuleValueList || $ mValue ->getListSeparator () !== ', ' ) {
252
- $ aResult [] = [$ mValue ];
253
- continue ;
254
- }
255
- if ($ this ->mValue ->getListSeparator () === ' ' || count ($ aResult ) === 0 ) {
256
- $ aResult [] = [];
257
- }
258
- foreach ($ mValue ->getListComponents () as $ mValue ) {
259
- $ aResult [count ($ aResult ) - 1 ][] = $ mValue ;
260
- }
261
- }
262
- return $ aResult ;
263
- }
264
-
265
192
/**
266
193
* Adds a value to the existing value. Value will be appended if a `RuleValueList` exists of the given type.
267
194
* Otherwise, the existing value will be wrapped by one.
0 commit comments