kahlan\Scope::__set PHP Method

__set() public method

Setter.
public __set ( string $key, mixed $value ) : mixed
$key string The name of the variable.
$value mixed The value of the variable.
return mixed The value of the variable.
    public function __set($key, $value)
    {
        if (isset(static::$blacklist[$key])) {
            throw new Exception("Sorry `{$key}` is a reserved keyword, it can't be used as a scope variable.");
        }
        return $this->_data[$key] = $value;
    }