/** * Create CRON object from a crontab string * * @param $string */ public function fromString($string) { list($minute, $hour, $dayOfMonth, $month, $dayOfWeek) = preg_split('/\\s+/', $string); $this->minute->fromCronValue($minute); $this->hour->fromCronValue($hour); $this->dayOfMonth->fromCronValue($dayOfMonth); $this->month->fromCronValue($month); $this->dayOfWeek->fromCronValue($dayOfWeek); }