You are here

public function SassNode::__set in Sassy 7.3

Same name and namespace in other branches
  1. 7 phamlp/sass/tree/SassNode.php \SassNode::__set()

Setter.

Parameters

string name of property to set:

Return value

mixed value of property

SassNode this node

File

phpsass/tree/SassNode.php, line 86

Class

SassNode
SassNode class. Base class for all Sass nodes. @package PHamlP @subpackage Sass.tree

Code

public function __set($name, $value) {
  $setter = 'set' . ucfirst($name);
  if (method_exists($this, $setter)) {
    $this
      ->{$setter}($value);
    return $this;
  }
  throw new SassNodeException('No setter function for ' . $name, $this);
}