Bluz\Common\Options::setOption PHP Method

setOption() public method

Set option by key over setter
public setOption ( string $key, string $value ) : void
$key string
$value string
return void
    public function setOption($key, $value)
    {
        $method = 'set' . $this->normalizeKey($key);
        if (method_exists($this, $method)) {
            $this->{$method}($value);
        } else {
            $this->options[$key] = $value;
        }
    }