protected function getCountriesFromInput(InputInterface $input)
    {
        $countries = $input->getOption('country');
        if (!is_array($countries) || empty($countries)) {
            throw new InvalidArgumentException('You need to specify minimum a Country. eg: --country=FR');
        }

        return $countries;
    }
protected function getCountriesFromInput(InputInterface $input)
    {
        $countries = $input->getOption('country');
        if (!is_array($countries) || empty($countries)) {
            throw new InvalidArgumentException('You need to specify minimum a Country. eg: --country=FR');
        }

        return $countries;
    }
protected function getCountriesFromInput ( InputInterface $ input ) { $ countries = $ input -> getOption ( 'country' ) ; if ( ! is_array ( $ countries ) || empty ( $ countries ) ) { throw new InvalidArgumentException ( 'You need to specify minimum a Country. eg: --country=FR' ) ; } return $ countries ; }
Get a country list from an input object or throw an Exception if none is
properly defined.

@param InputInterface $input Input

@return array Country array from input

@throws InvalidArgumentException Countries not found
Get a country list from an input object or throw an Exception if none is properly defined .