Are farmers a class?

What do we mean when we say farmer if we analyse it through the lens of class?