protected function getTimeSet($hour, $minute, $second)
{
switch ($this->freq) {
case self::HOURLY:
$set = array();
foreach ($this->byminute as $minute) {
foreach ($this->bysecond as $second) {
// should we use another type?
$set[] = array($hour, $minute, $second);
}
}
// sort ?
return $set;
case self::MINUTELY:
$set = array();
foreach ($this->bysecond as $second) {
// should we use another type?
$set[] = array($hour, $minute, $second);
}
// sort ?
return $set;
case self::SECONDLY:
return array(array($hour, $minute, $second));
default:
throw new \LogicException('getTimeSet called with an invalid frequency');
}
}