variable; } /** * @param Less_Tree_Variable $variable * * @return $this */ public function setVariable(Less_Tree_Variable $variable) { $this->variable = $variable; return $this; } public function compile($env) { $v = $this->getVariable(); $compiled = $v->compile($env); if ($compiled instanceof ColorProp) { // We may already have a ColorProp, which is the case with mixin calls. return $compiled; } if ($compiled instanceof Less_Tree_Color) { return ColorProp::fromColor($compiled) ->setIndex($v->index) ->setOrigin(substr($v->name, 1)); } return $compiled; } }