protected function setOption(Array $options, $name, $method)
    {
        if (isset($options[$name])) {
            $this->$method($options[$name]);
        }
    }
protected function setOption(Array $options, $name, $method)
    {
        if (isset($options[$name])) {
            $this->$method($options[$name]);
        }
    }
protected function setOption ( Array $ options , $ name , $ method ) { if ( isset ( $ options [ $ name ] ) ) { $ this -> $ method ( $ options [ $ name ] ) ; } }
Shortcut to set options from array config

@param array $options
@param $name
@param $method
Shortcut to set options from array config