CronTask::dailyAction()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
cc 1
eloc 1
c 0
b 0
f 0
nc 1
nop 0
dl 0
loc 3
ccs 0
cts 2
cp 0
crap 2
rs 10
1
<?php
2
3
/**
4
 * This file is part of the Zemit Framework.
5
 *
6
 * (c) Zemit Team <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE.txt
9
 * file that was distributed with this source code.
10
 */
11
12
namespace Zemit\Modules\Cli\Tasks;
13
14
use Zemit\Modules\Cli\Task;
15
16
class CronTask extends Task
17
{
18
    public string $cliDoc = <<<DOC
19
Usage:
20
  zemit cli cron <action> [<params> ...]
21
22
Options:
23
  task: cron
24
  action: main,hourly,daily,weekly,monthly
25
26
27
DOC;
28
29
    public function mainAction(): ?array
30
    {
31
        return null;
32
    }
33
34
    public function hourlyAction(): ?array
35
    {
36
        return null;
37
    }
38
39
    public function dailyAction(): ?array
40
    {
41
        return null;
42
    }
43
44
    public function weeklyAction(): ?array
45
    {
46
        return null;
47
    }
48
49
    public function monthlyAction(): ?array
50
    {
51
        return null;
52
    }
53
}
54