Changing building management to object oriented PHP