public function HamlNode::__set in Sassy 7
* Setter. *
Parameters
string name of property to set: * @return mixed value of property * @return HamlNode this node
File
- phamlp/
haml/ tree/ HamlNode.php, line 98
Class
- HamlNode
- HamlNode class. Base class for all Haml nodes. @package PHamlP @subpackage Haml.tree
Code
public function __set($name, $value) {
$setter = 'set' . ucfirst($name);
if (method_exists($this, $setter)) {
$this
->{$setter}($value);
return $this;
}
throw new HamlNodeException('No setter function for {what}', array(
'{what}' => $name,
));
}