public function set(string $name, $value, int $type = self::TYPE_LOCAL): OptionList
    {
        if ($type == self::TYPE_GLOBAL) {
            self::$globalOptions[$name] = $value;
        } else {
            $this->options[$name] = $value;
        }

        return $this;
    }