protected function getRequestedLevel(InputInterface $input)
    {
        $str = $input->getOption('level');
        if (empty($str)) {
            return null;
        }
        foreach ([self::LEVEL_PROJECT, self::LEVEL_ENVIRONMENT] as $validLevel) {
            if (stripos($validLevel, $str) === 0) {
                return $validLevel;
            }
        }
        throw new InvalidArgumentException('Invalid level: ' . $str);
    }
protected function getRequestedLevel(InputInterface $input)
    {
        $str = $input->getOption('level');
        if (empty($str)) {
            return null;
        }
        foreach ([self::LEVEL_PROJECT, self::LEVEL_ENVIRONMENT] as $validLevel) {
            if (stripos($validLevel, $str) === 0) {
                return $validLevel;
            }
        }
        throw new InvalidArgumentException('Invalid level: ' . $str);
    }
protected function getRequestedLevel ( InputInterface $ input ) { $ str = $ input -> getOption ( 'level' ) ; if ( empty ( $ str ) ) { return null ; } foreach ( [ self :: LEVEL_PROJECT , self :: LEVEL_ENVIRONMENT ] as $ validLevel ) { if ( stripos ( $ validLevel , $ str ) === 0 ) { return $ validLevel ; } } throw new InvalidArgumentException ( 'Invalid level: ' . $ str ) ; }
Get the requested variable level.

@param InputInterface $input

@return string|null
Get the requested variable level .