You are here

public function HamlParser::__get in Sassy 7

* Getter. *

Parameters

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

File

phamlp/haml/HamlParser.php, line 367

Class

HamlParser
HamlParser class. Parses {@link http://haml-lang.com/ Haml} view files. @package PHamlP @subpackage Haml

Code

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