public function SassNode::__get in Sassy 7
Same name and namespace in other branches
- 7.3 phpsass/tree/SassNode.php \SassNode::__get()
* Getter. *
Parameters
string name of property to get: * @return mixed return value of getter function
File
- phamlp/
sass/ tree/ SassNode.php, line 69
Class
- SassNode
- SassNode class. Base class for all Sass nodes. @package PHamlP @subpackage Sass.tree
Code
public function __get($name) {
$getter = 'get' . ucfirst($name);
if (method_exists($this, $getter)) {
return $this
->{$getter}();
}
throw new SassNodeException('No getter function for {what}', array(
'{what}' => $name,
), $this);
}