protected function updatedBulkUpload(BatchJob $dbBatchJob, kBulkUploadJobData $data, BatchJob $twinJob = null) { switch ($dbBatchJob->getStatus()) { case BatchJob::BATCHJOB_STATUS_PENDING: return kFlowHelper::handleBulkUploadPending($dbBatchJob, $data, $twinJob); default: return $dbBatchJob; } }