Creating PHP Objects on the fly