public function fromMailJob(MailJob $dbMailJob) { parent::fromObject($dbMailJob); return $this; }
public function fromNotification(notification $dbNotification) { parent::fromObject($dbNotification); return $this; }
public function fromObject($dbBatchJob) { parent::fromObject($dbBatchJob); $this->queueTime = $dbBatchJob->getQueueTime(null); // to return the timestamp and not string $this->finishTime = $dbBatchJob->getFinishTime(null); // to return the timestamp and not string if (!$dbBatchJob instanceof BatchJob) { return $this; } $dbData = $dbBatchJob->getData(); $this->fromData($dbBatchJob, $dbData); if ($this->data) { $this->jobSubType = $this->data->fromSubType($dbBatchJob->getJobSubType()); } return $this; }