1 | <?php |
||
10 | class Schedule |
||
11 | { |
||
12 | /** |
||
13 | * @var array |
||
14 | */ |
||
15 | private static $map = [ |
||
16 | '@yearly' => '0 0 1 1 *', |
||
17 | '@annually' => '0 0 1 1 *', |
||
18 | '@monthly' => '0 0 1 * *', |
||
19 | '@weekly' => '0 0 * * 0', |
||
20 | '@daily' => '0 0 * * *', |
||
21 | '@hourly' => '0 * * * *', |
||
22 | '@semi_hourly' => '*/30 * * * *', |
||
23 | '@quarter_hourly' => '*/15 * * * *', |
||
24 | '*' => '* * * * *', |
||
25 | ]; |
||
26 | |||
27 | /** |
||
28 | * @var string |
||
29 | */ |
||
30 | public $runEvery; |
||
31 | |||
32 | /** |
||
33 | * @var bool |
||
34 | */ |
||
35 | public $active = true; |
||
36 | |||
37 | /** |
||
38 | * @var null|int |
||
39 | */ |
||
40 | public $timeout = 0; |
||
41 | |||
42 | /** |
||
43 | * @var int |
||
44 | */ |
||
45 | public $version = 10; |
||
46 | |||
47 | /** |
||
48 | * @var array |
||
49 | */ |
||
50 | public $params = []; |
||
51 | |||
52 | /** |
||
53 | * @param array $options |
||
54 | */ |
||
55 | public function __construct(array $options) |
||
88 | } |
||
89 |