You are here

public function SassParser::__get in Sassy 7

Same name and namespace in other branches
  1. 7.3 phpsass/SassParser.php \SassParser::__get()

* Getter. *

Parameters

string name of property to get: * @return mixed return value of getter function

File

phamlp/sass/SassParser.php, line 348

Class

SassParser
SassParser class. Parses {@link http://sass-lang.com/ .sass and .sccs} files. @package PHamlP @subpackage Sass

Code

public function __get($name) {
  $getter = 'get' . ucfirst($name);
  if (method_exists($this, $getter)) {
    return $this
      ->{$getter}();
  }
  throw new SassException('No getter function for {what}', array(
    '{what}' => $name,
  ));
}