You are here

public function SassScriptOperation::__get in Sassy 7.3

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

Getter function for properties

Parameters

string name of property:

Return value

mixed value of the property

Throws

SassScriptOperationException if the property does not exist

File

phpsass/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, SassScriptParser::$context->node);
  }
}