Namshi\Cuzzle\Formatter\CurlFormatter::addOption PHP Méthode

addOption() protected méthode

protected addOption ( $name, null $value = null )
$name
$value null
    protected function addOption($name, $value = null)
    {
        if (isset($this->options[$name])) {
            if (!is_array($this->options[$name])) {
                $this->options[$name] = (array) $this->options[$name];
            }
            $this->options[$name][] = $value;
        } else {
            $this->options[$name] = $value;
        }
    }