The doWork() method must be public.

This is the method registered with the GearmanWorker. It must be public for the other class to see it.