php lottery class