What is the main criterion used by the World Bank in classifying different countries?

What is the main criterion used by the World Bank in classifying different countries?