PHP class for flash messages