private function getTimeOption(InputInterface $input, $optionName, $min = 0, $max = 3600)
    {
        $value = $input->getOption($optionName);
        if ($value <= $min) {
            $value = $min;
        } elseif ($value > $max) {
            $value = $max;
        }

        return $value;
    }
private function getTimeOption(InputInterface $input, $optionName, $min = 0, $max = 3600)
    {
        $value = $input->getOption($optionName);
        if ($value <= $min) {
            $value = $min;
        } elseif ($value > $max) {
            $value = $max;
        }

        return $value;
    }
private function getTimeOption ( InputInterface $ input , $ optionName , $ min = 0 , $ max = 3600 ) { $ value = $ input -> getOption ( $ optionName ) ; if ( $ value <= $ min ) { $ value = $ min ; } elseif ( $ value > $ max ) { $ value = $ max ; } return $ value ; }
Get a numeric option value while ensuring it's a reasonable number.

@param \Symfony\Component\Console\Input\InputInterface $input
@param string                                          $optionName
@param int                                             $min
@param int                                             $max

@return float|int
Get a numeric option value while ensuring it s a reasonable number .