You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -245,7 +261,11 @@ public function splice($iOffset, $iLength = null, $mReplacement = null)
245
261
246
262
/**
247
263
* Removes an item from the CSS list.
248
-
* @param RuleSet|Import|Charset|CSSList $oItemToRemove May be a RuleSet (most likely a DeclarationBlock), a Import, a Charset or another CSSList (most likely a MediaQuery)
* May be a RuleSet (most likely a DeclarationBlock), a Import,
267
+
* a Charset or another CSSList (most likely a MediaQuery)
268
+
*
249
269
* @return bool Whether the item was removed.
250
270
*/
251
271
publicfunctionremove($oItemToRemove)
@@ -261,7 +281,9 @@ public function remove($oItemToRemove)
261
281
/**
262
282
* Replaces an item from the CSS list.
263
283
*
264
-
* @param RuleSet|Import|Charset|CSSList $oItemToRemove May be a RuleSet (most likely a DeclarationBlock), a Import, a Charset or another CSSList (most likely a MediaQuery)
Copy file name to clipboardExpand all lines: lib/Sabberworm/CSS/CSSList/Document.php
+11-4Lines changed: 11 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,8 @@
5
5
useSabberworm\CSS\Parsing\ParserState;
6
6
7
7
/**
8
-
* The root CSSList of a parsed file. Contains all top-level css contents, mostly declaration blocks, but also any @-rules encountered.
8
+
* The root CSSList of a parsed file. Contains all top-level css contents, mostly declaration blocks,
9
+
* but also any @-rules encountered.
9
10
*/
10
11
class Document extends CSSBlockList
11
12
{
@@ -62,7 +63,9 @@ public function getAllRuleSets()
62
63
63
64
/**
64
65
* Returns all Value objects found recursively in the tree.
65
-
* @param (object|string) $mElement the CSSList or RuleSet to start the search from (defaults to the whole document). If a string is given, it is used as rule name filter (@see{RuleSet->getRules()}).
66
+
* @param (object|string) $mElement
67
+
* the CSSList or RuleSet to start the search from (defaults to the whole document).
68
+
* If a string is given, it is used as rule name filter (@see{RuleSet->getRules()}).
66
69
* @param (bool) $bSearchInFunctionArguments whether to also return Value objects used as Function arguments.
@@ -117,7 +121,8 @@ public function setValue($mValue)
117
121
}
118
122
119
123
/**
120
-
* @deprecated Old-Style 2-dimensional array given. Retained for (some) backwards-compatibility. Use setValue() instead and wrapp the value inside a RuleValueList if necessary.
124
+
* @deprecated Old-Style 2-dimensional array given. Retained for (some) backwards-compatibility.
125
+
* Use setValue() instead and wrap the value inside a RuleValueList if necessary.
121
126
*/
122
127
publicfunctionsetValues($aSpaceSeparatedValues)
123
128
{
@@ -153,7 +158,8 @@ public function setValues($aSpaceSeparatedValues)
153
158
}
154
159
155
160
/**
156
-
* @deprecated Old-Style 2-dimensional array returned. Retained for (some) backwards-compatibility. Use getValue() instead and check for the existance of a (nested set of) ValueList object(s).
161
+
* @deprecated Old-Style 2-dimensional array returned. Retained for (some) backwards-compatibility.
162
+
* Use getValue() instead and check for the existance of a (nested set of) ValueList object(s).
157
163
*/
158
164
publicfunctiongetValues()
159
165
{
@@ -180,7 +186,8 @@ public function getValues()
180
186
}
181
187
182
188
/**
183
-
* Adds a value to the existing value. Value will be appended if a RuleValueList exists of the given type. Otherwise, the existing value will be wrapped by one.
189
+
* Adds a value to the existing value. Value will be appended if a RuleValueList exists of the given type.
190
+
* Otherwise, the existing value will be wrapped by one.
0 commit comments