Set authorizer option.

@param string $appId
@param string $name
@param string $value

@return mixed
511432
public function setAuthorizerOption(string $appId, string $name, string $value)
    {
        $params = [
            'component_appid' => $this->app['config']['app_id'],
            'authorizer_appid' => $appId,
            'option_name' => $name,
            'option_value' => $value,
        ];

        return $this->httpPostJson('cgi-bin/component/api_set_authorizer_option', $params);
    }
1231068
public function setOption($name, $value)
    {
        if (!is_string($name)) {
            throw new Exception('invalid options name');
        }
        $name = strtolower($name);
        if ($name == 'result_store') {
            $this->options['result_store'] = $value;
            $this->setResultStore($value);
        } elseif ($name == 'broker') {
            $this->options['broker'] = $value;
            $this->setBroker($value);
        }
        return $this;
    }
1047118
public function setOption($name, $value = null)
    {
        if (is_array($name)) {
            $this->_option = $name;
        } elseif (is_null($value)) {
            unset($this->_option[$name]);
        } else {
            $this->_option[$name] = $value;
        }
    }
191553
public function setOption( $name, $value ) {
        if( key_exists( $name, $this->options) )
            $this->options[$name] = $value;
        else
            throw new Exception\OptionDoesNotExist( $name );
    }
815704
public function setOption($name, $value)
    {
        if ($name == 'tag_cache') {
            $this->setInnerCache($value);
        } else {
            parent::setOption($name, $value);
        }
        return $this;
    }
566365
public function setParam($name, $value=null) {
		if(is_array($name)) {
			foreach($name as $k=>$v)
				$this->setParam($k, $v);
			return $this;
		}
		$this->params[$name] = $value;
		return $this;
	}
234756
public function setOption($name, $value)
    {
        $this->validate($name, $value);
        $this->options[$name] = $value;

        return $this;
    }
517435
public function set($name, $value = null)
	{
		is_null($name) or \Arr::set($this->data, $name, $value);

		return $this;
	}
469681
public function setOption($name, $value)
    {
        $methodName = 'set' . ucfirst($name);
        if (!method_exists($this, $methodName)) {
            throw new RuntimeException('Method not exists: ' . $methodName);
        }
        return $this->$methodName($value);
    }
765518
public function getAuthorizerSetting($authorizerAppId, $key)
    {
        $body = $this->parseJSON('json', [
            self::API_GET_AUTHORIZER_SETTING,
            [
                'component_appid'  => $this->getAccessToken()->getAppId(),
                'authorizer_appid' => $authorizerAppId,
                'option_name'      => $key
            ]
        ]);

        return $body;
    }
1280613
public function setProperty(string $name, $value): self
    {
        if (strpos($name, '_')) { // camelize
            $name = preg_replace_callback('~_([a-z])~', function($match) {
                return ucfirst($match[1]);
            }, strtolower($name));
        }

        if (!property_exists($this, $name)) {
            throw new PagerException("No property found such '{$name}'");
        }

        // forbid start & stop
        if (in_array($name, ['start', 'stop'])) {
            throw new PagerException("Not allowed property '{$name}' to set");
        }

        static $intProperties = ['stopMax', 'stopDefault', 'totalPages', 'totalRecords', 'linksLimit'];
        static $boolProperties = ['autorun', 'numerateFirstLast'];

        if (in_array($name, $intProperties)) {
            $value = (int) abs($value);
        } elseif (is_array($name, $boolProperties)) {
            $value = (bool) $value;
        }

        if ($name == 'stop' && $value > $this->stopMax) {
            $value = $this->stopMax;
        }

        $this->{$name} = $value;

        return $this;
    }
1374474
public function setConfigParam($name, $value)
	{

		if (!isset($this->configParams[$name])) {
			throw new GatewayException('User undefined config param [' . $name . ']');
		}

		$this->configParams[$name] = $value;

	}
636008
public function setOption($name, $value)
    {
        if (is_string($name)) {
            if (isset($this->options[$name])) {
                switch ($name) {
                    case self::OPTION_STYLE_TAG:
                        if (is_int($value)) {
                            if (!in_array($value, [
                                self::OPTION_STYLE_TAG_BODY,
                                self::OPTION_STYLE_TAG_HEAD,
                                self::OPTION_STYLE_TAG_REMOVE,
                            ])) {
                                throw new \InvalidArgumentException("Invalid value '$value' for option '$name'.");
                            }
                        } else {
                            throw new \InvalidArgumentException(
                                "Invalid type '" . gettype($value) . "' for value of option '$name'."
                            );
                        }
                        break;
                    case self::OPTION_HTML_CLASSES:
                        if (is_int($value)) {
                            if (!in_array($value, [
                                self::OPTION_HTML_CLASSES_REMOVE,
                                self::OPTION_HTML_CLASSES_KEEP,
                            ])) {
                                throw new \InvalidArgumentException("Invalid value '$value' for option '$name'.");
                            }
                        } else {
                            throw new \InvalidArgumentException(
                                "Invalid type '" . gettype($value) . "' for value of option '$name'."
                            );
                        }
                        break;
                    case self::OPTION_HTML_COMMENTS:
                        if (is_int($value)) {
                            if (!in_array($value, [
                                self::OPTION_HTML_COMMENTS_REMOVE,
                                self::OPTION_HTML_COMMENTS_KEEP,
                            ])) {
                                throw new \InvalidArgumentException("Invalid value '$value' for option '$name'.");
                            }
                        } else {
                            throw new \InvalidArgumentException(
                                "Invalid type '" . gettype($value) . "' for value of option '$name'."
                            );
                        }
                        break;
                    case self::OPTION_TEXT_LINE_WIDTH:
                        if (is_int($value)) {
                            if ($value <= 0) {
                                throw new \LengthException(
                                    "Value '" . gettype($value) . "' for option '$name' is to small."
                                );
                            }
                        } else {
                            throw new \InvalidArgumentException(
                                "Invalid type '" . gettype($value) . "' for value of option '$name'."
                            );
                        }
                        break;
                    case self::OPTION_CSS_WRITER_CLASS:
                        if (is_string($value)) {
                            if (is_subclass_of($value, '\Crossjoin\Css\Writer\WriterAbstract', true) === false) {
                                throw new \InvalidArgumentException(
                                    "Invalid value '$value' for option '$name'. " .
                                    "The given class has to be a subclass of \\Crossjoin\\Css\\Writer\\WriterAbstract."
                                );
                            }
                        } else {
                            throw new \InvalidArgumentException(
                                "Invalid type '" . gettype($value) . "' for value of option '$name'."
                            );
                        }
                }
                $this->options[$name] = $value;
            } else {
                throw new \InvalidArgumentException("An option with the name '$name' doesn't exist.");
            }
        } else {
            throw new \InvalidArgumentException("Invalid type '" . gettype($name) . "' for argument 'name'.");
        }
    }
474067
public function setHtmlEngineOptions($name, $value = '')
    {
        if (is_array($name)) {
            $this->options = array_merge($this->options, $name);
        } else {
            $this->options[$name] = $value;
        }
        return $this;
    }
576055
public function setOption($name, $value)
    {
        Arr::set($this->options, $name, $value);

        return $this;
    }
221707
public function info($appId) {
        $data = $this->getInfo()->parameters([
            'authorizer_appid' => $appId
        ])->json();
        if (!array_key_exists('authorizer_info', $data)) {
            throw new \Exception('INFO ERROR!');
        }
        $this->set($data['authorizer_info']);
        return $data['authorizer_info'];
    }
1109730
public function set($name, $value, array $options = [])
    {
        $options = $this->options($options);
        $value   = parent::set($name, $value, $options);

        return setcookie(
            $this->normalize($name),
            $value,
            $options[self::OPTION_EXPIRE],
            $options[self::OPTION_PATH],
            $options[self::OPTION_DOMAIN],
            false,
            $options[self::OPTION_HTTP_ONLY]
        );
    }