Dispatcher/GearmanCallbacksDispatcher.php
public function assignCompleteCallback(GearmanTask $gearmanTask, $contextReference = null)
    {
        $event = new GearmanClientCallbackCompleteEvent($gearmanTask);
        if (!is_null($contextReference)) {
            $event->setContext($contextReference);
        }
        $this->eventDispatcher->dispatch(
            GearmanEvents::GEARMAN_CLIENT_CALLBACK_COMPLETE,
            $event
        );
    }
public function assignCompleteCallback(GearmanTask $gearmanTask, $contextReference = null)
    {
        $event = new GearmanClientCallbackCompleteEvent($gearmanTask);
        if (!is_null($contextReference)) {
            $event->setContext($contextReference);
        }
        $this->eventDispatcher->dispatch(
            GearmanEvents::GEARMAN_CLIENT_CALLBACK_COMPLETE,
            $event
        );
    }
public function assignCompleteCallback ( GearmanTask $ gearmanTask , $ contextReference = null ) { $ event = new GearmanClientCallbackCompleteEvent ( $ gearmanTask ) ; if ( ! is_null ( $ contextReference ) ) { $ event -> setContext ( $ contextReference ) ; } $ this -> eventDispatcher -> dispatch ( GearmanEvents :: GEARMAN_CLIENT_CALLBACK_COMPLETE , $ event ) ; }
Assigns CompleteCallback into GearmanTask

@param GearmanTask $gearmanTask Gearman Task

@see http://www.php.net/manual/en/gearmanclient.setcompletecallback.php
Assigns CompleteCallback into GearmanTask