public function getOption($name)
    {
        $method = 'get' . ucfirst($name);
        if (method_exists($this, $method) && $method !== __FUNCTION__) {
            return $this->$method();
        } elseif (isset($this->options[$name])) {
            return $this->options[$name];
        }
    }
public function getOption($name)
    {
        $method = 'get' . ucfirst($name);
        if (method_exists($this, $method) && $method !== __FUNCTION__) {
            return $this->$method();
        } elseif (isset($this->options[$name])) {
            return $this->options[$name];
        }
    }
public function getOption ( $ name ) { $ method = 'get' . ucfirst ( $ name ) ; if ( method_exists ( $ this , $ method ) && $ method !== __FUNCTION__ ) { return $ this -> $ method ( ) ; } elseif ( isset ( $ this -> options [ $ name ] ) ) { return $ this -> options [ $ name ] ; } }
Get single option

@param string $name name of option
@return mixed
Get single option