separate ZMPlugin to traits

This commit is contained in:
crazywhalecc
2023-01-12 09:39:52 +08:00
parent a420c3ab23
commit dd6b700b47
11 changed files with 211 additions and 71 deletions

View File

@@ -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);
}
}