PHPPM\Commands\ConfigTrait::optionOrConfigValue PHP Method

optionOrConfigValue() protected method

protected optionOrConfigValue ( Symfony\Component\Console\Input\InputInterface $input, $name, $config )
$input Symfony\Component\Console\Input\InputInterface
    protected function optionOrConfigValue(InputInterface $input, $name, $config)
    {
        if ($input->hasParameterOption('--' . $name)) {
            return $input->getOption($name);
        }
        return isset($config[$name]) ? $config[$name] : $input->getOption($name);
    }