You are here

public function SassScriptOperation::__get in Sassy 7

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

* Getter function for properties *

Parameters

string name of property: * @return mixed value of the property * @throws SassScriptOperationException if the property does not exist

File

phamlp/sass/script/SassScriptOperation.php, line 104

Class

SassScriptOperation
SassScriptOperation class. The operation to perform. @package PHamlP @subpackage Sass.script

Code

public function __get($name) {
  if (property_exists($this, $name)) {
    return $this->{$name};
  }
  else {
    throw new SassScriptOperationException('Unknown property: {name}', array(
      '{name}' => $name,
    ), SassScriptParser::$context->node);
  }
}