protected function getOptions($optionNames = null)
    {
        $options = [];

        if ($optionNames === null) {
            $optionNames = $this->optionNames;
        }

        foreach ($optionNames as $option) {
            $converter = 'convert' . ucfirst($option);
            $value = method_exists($this, $converter) ? $this->$converter() : $this->$option;

            if ($value === null) {
                continue;
            }

            $options[$option] = $value;
        }

        return $options;
    }
protected function getOptions($optionNames = null)
    {
        $options = [];

        if ($optionNames === null) {
            $optionNames = $this->optionNames;
        }

        foreach ($optionNames as $option) {
            $converter = 'convert' . ucfirst($option);
            $value = method_exists($this, $converter) ? $this->$converter() : $this->$option;

            if ($value === null) {
                continue;
            }

            $options[$option] = $value;
        }

        return $options;
    }
protected function getOptions ( $ optionNames = null ) { $ options = [ ] ; if ( $ optionNames === null ) { $ optionNames = $ this -> optionNames ; } foreach ( $ optionNames as $ option ) { $ converter = 'convert' . ucfirst ( $ option ) ; $ value = method_exists ( $ this , $ converter ) ? $ this -> $ converter ( ) : $ this -> $ option ; if ( $ value === null ) { continue ; } $ options [ $ option ] = $ value ; } return $ options ; }
Applies all options set on the cursor, overwriting any options that have already been set

@param array $optionNames Array of option names to be applied (will be read from properties)
@return array
Applies all options set on the cursor overwriting any options that have already been set