public static function handleProvisionProvideFinished(BatchJob $dbBatchJob, kProvisionJobData $data, BatchJob $twinJob = null) { $entry = $dbBatchJob->getEntry(); $entry->setStreamUsername($data->getEncoderUsername()); $entry->setStreamUrl($data->getRtmp()); $entry->setStreamRemoteId($data->getStreamID()); $entry->setStreamRemoteBackupId($data->getBackupStreamID()); $entry->setPrimaryBroadcastingUrl($data->getPrimaryBroadcastingUrl()); $entry->setSecondaryBroadcastingUrl($data->getSecondaryBroadcastingUrl()); $entry->setStreamName($data->getStreamName()); kBatchManager::updateEntry($dbBatchJob, entryStatus::READY); return $dbBatchJob; }