erp = $erp; } /** * @param string $cronFile * @param int $period * @param DateTimeInterface $startTime * @param string|null $title * * @throws BackupProcessStarterException * * @return bool|int|string|null */ public function tryCheckProcess($cronFile, $period, DateTimeInterface $startTime, $title = null) { if (empty($cronFile)) { throw new BackupProcessStarterException('Cron file is missing'); } if (null === $title) { $title = $cronFile; } return $this->erp->CheckProzessstarter($title, 'periodisch', $period, $startTime->format('Y-m-d H:i:s'), 'cronjob', $cronFile, 1); } }