public static function jobAlreadyExists(Job $job) { return new self('A job with the same characteristics already exists in this crontab. Command: ' . $job->getCommand()); }
/** * @param Job $job * @return string */ private function dumpJob(Job $job) { return sprintf(self::LINE_FORMAT, $job->getMinute(), $job->getHour(), $job->getDayOfMonth(), $job->getMonth(), $job->getDayOfWeek(), $job->getCommand()); }