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