private function buildEventObject($user, $purgeJob = false)
    {
        $event = new OnLogoutEvent($user);
        if ($purgeJob) {
            $event->markAsPurgeJob();
        }

        return $event;
    }
private function buildEventObject($user, $purgeJob = false)
    {
        $event = new OnLogoutEvent($user);
        if ($purgeJob) {
            $event->markAsPurgeJob();
        }

        return $event;
    }
private function buildEventObject ( $ user , $ purgeJob = false ) { $ event = new OnLogoutEvent ( $ user ) ; if ( $ purgeJob ) { $ event -> markAsPurgeJob ( ) ; } return $ event ; }
Builds the `OnLogoutEvent`.

@param object $user
@param bool   $purgeJob

@return OnLogoutEvent
Builds the OnLogoutEvent .