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

@param  string $key
@param  string $value

@return void
Set option by key over setter