I think that using an enum would be clearer than with an integer. I'm probably going to change this with an enum or introducing a function for each phase.