Object-oriented PHP sentence generator