public function fromCronValue($val)
{
$parts = explode(',', $val);
foreach ($parts as $part) {
if (false !== strstr($part, '/')) {
preg_match('/\\*\\/(\\d+)/', $part, $matches);
if (isset($matches[1])) {
$this->repeatsOn(intval($matches[1]));
}
} else {
if (false !== strstr($part, '-')) {
$ranges = explode('-', $part);
$this->setRange(intval($ranges[0]), intval($ranges[1]));
} else {
if (is_numeric($part)) {
$this->addSpecific(intval($part));
}
}
}
}
}