Skip to content
This repository was archived by the owner on Sep 10, 2022. It is now read-only.

Commit fa8ffba

Browse files
committed
Add method setLineNo to set each component of the class Color
1 parent 616bc2c commit fa8ffba

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

lib/Sabberworm/CSS/Value/Color.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,14 @@ public function setColor($aColor) {
1717
$this->aComponents = $aColor;
1818
}
1919

20+
public function setLineNo($iLineNum = 0)
21+
{
22+
foreach($this->aComponents as $color_component) {
23+
$color_component->setLineNo($iLineNum);
24+
}
25+
parent::setLineNo($iLineNum);
26+
}
27+
2028
public function getColorDescription() {
2129
return $this->getName();
2230
}

0 commit comments

Comments
 (0)