CLI_Command::get_update_type_str PHP Метод

get_update_type_str() приватный Метод

Get a string representing the type of update being checked for.
private get_update_type_str ( $assoc_args )
    private function get_update_type_str($assoc_args)
    {
        $update_type = ' ';
        foreach (array('major', 'minor', 'patch') as $type) {
            if (true === \WP_CLI\Utils\get_flag_value($assoc_args, $type)) {
                $update_type = ' ' . $type . ' ';
                break;
            }
        }
        return $update_type;
    }