PHP FLow class