PHPPM\Commands\ConfigTrait::optionOrConfigValue PHP Метод

optionOrConfigValue() защищенный Метод

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);
    }