public static function validateEnums(InputInterface $input, $domain, $types = [])
    {
        $ret = [];

        foreach ($types as $type) {
            $v = $input->getOption($type);
            if (null !== $v) {
                self::validateEnum($domain, $type, $v);
                $ret[$type] = $v;
            }
        }

        return $ret;
    }
public static function validateEnums(InputInterface $input, $domain, $types = [])
    {
        $ret = [];

        foreach ($types as $type) {
            $v = $input->getOption($type);
            if (null !== $v) {
                self::validateEnum($domain, $type, $v);
                $ret[$type] = $v;
            }
        }

        return $ret;
    }
public static function validateEnums ( InputInterface $ input , $ domain , $ types = [ ] ) { $ ret = [ ] ; foreach ( $ types as $ type ) { $ v = $ input -> getOption ( $ type ) ; if ( null !== $ v ) { self :: validateEnum ( $ domain , $ type , $ v ) ; $ ret [ $ type ] = $ v ; } } return $ ret ; }
Validate the given enum fields in the given Input.

@param InputInterface $input  - Input which contains the options to be validated
@param string         $domain - Domain of the enum e.g. issue
@param string[]       $types  - Types to validate (e.g. filter ,state, etc)

@throws \InvalidArgumentException

@return array Array of key value pairs
Validate the given enum fields in the given Input .