コード例 #1
0
 public static function jobAlreadyExists(Job $job)
 {
     return new self('A job with the same characteristics already exists in this crontab. Command: ' . $job->getCommand());
 }
コード例 #2
0
 /**
  * @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());
 }