You are here

public function SassNode::__get in Sassy 7.3

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

Getter.

Parameters

string name of property to get:

Return value

mixed return value of getter function

File

phpsass/tree/SassNode.php, line 72

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 ' . $name, $this);
}