src/TerminalObject/Dynamic/Checkbox/CheckboxGroup.php
protected function getCurrentKey($direction, $option, $key)
    {
        $method = 'get' . ucwords($direction). 'Key';

        return $this->{$method}($option, $key);
    }
protected function getCurrentKey($direction, $option, $key)
    {
        $method = 'get' . ucwords($direction). 'Key';

        return $this->{$method}($option, $key);
    }
protected function getCurrentKey ( $ direction , $ option , $ key ) { $ method = 'get' . ucwords ( $ direction ) . 'Key' ; return $ this -> { $ method } ( $ option , $ key ) ; }
Retrieve the correct current key

@param string $direction 'previous' or 'next'
@param Checkbox $option
@param int $key

@return int
Retrieve the correct current key