mirror of
https://github.com/zhamao-robot/zhamao-framework.git
synced 2026-07-21 23:55:35 +08:00
separate ZMPlugin to traits
This commit is contained in:
@@ -31,4 +31,9 @@ class Cron extends AnnotationBase
|
||||
) {
|
||||
$this->expression = new CronExpression($expression);
|
||||
}
|
||||
|
||||
public static function make(string $expression, int $worker_id = 0, bool $no_overlap = false): Cron
|
||||
{
|
||||
return new Cron($expression, $worker_id, $no_overlap);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user