public function handle($event): void
    {
        if (!$job = $this->deserialize($event->job)) {
            return;
        }

        $clientJob = $job->clientJob ?? null;

        if (!$clientJob instanceof AsynchronousProcess) {
            return;
        }

        $clientJob->processed($event->job);
    }
public function handle($event): void
    {
        if (!$job = $this->deserialize($event->job)) {
            return;
        }

        $clientJob = $job->clientJob ?? null;

        if (!$clientJob instanceof AsynchronousProcess) {
            return;
        }

        $clientJob->processed($event->job);
    }
public function handle ( $ event ) : void { if ( ! $ job = $ this -> deserialize ( $ event -> job ) ) { return ; } $ clientJob = $ job -> clientJob ?? null ; if ( ! $ clientJob instanceof AsynchronousProcess ) { return ; } $ clientJob -> processed ( $ event -> job ) ; }
Handle the event.

@param JobProcessed|JobFailed $event
@return void
Handle the event .