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;
    }
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;
    }
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 ; }
Set option.

@param string $name  Option name
@param mixed  $value Option value
@param int    $type  Type of option (TYPE_LOCAL|TYPE_GLOBAL)

@return static
Set option .