SassLiteral::__get PHP Method

__get() public method

Getter.
public __get ( string $name ) : mixed
$name string name of property to get
return mixed return value of getter function
    public function __get($name)
    {
        $getter = 'get' . ucfirst($name);
        if (method_exists($this, $getter)) {
            return $this->{$getter}();
        } else {
            throw new SassLiteralException('No getter function for ' . $name, SassScriptParser::$context->node);
        }
    }