We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0cf5ed8 commit 9c14b9fCopy full SHA for 9c14b9f
lib/CSSList.php
@@ -6,15 +6,23 @@
6
*/
7
abstract class CSSList {
8
private $aContents;
9
-
+
10
public function __construct() {
11
$this->aContents = array();
12
}
13
14
public function append($oItem) {
15
$this->aContents[] = $oItem;
16
17
18
+ public function remove(CSSDeclarationBlock $item) {
19
+ foreach ($this->aContents as $key => $oItem) {
20
+ if($oItem->getSelectors() === $item->getSelectors()) {
21
+ unset($this->aContents[$key]);
22
+ }
23
24
25
26
public function __toString() {
27
$sResult = '';
28
foreach($this->aContents as $oContent) {
0 commit comments