CronTask   A
last analyzed

Complexity

Total Complexity 5

Size/Duplication

Total Lines 36
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
eloc 16
dl 0
loc 36
ccs 0
cts 10
cp 0
rs 10
c 0
b 0
f 0
wmc 5

5 Methods

Rating   Name   Duplication   Size   Complexity  
A monthlyAction() 0 3 1
A hourlyAction() 0 3 1
A weeklyAction() 0 3 1
A dailyAction() 0 3 1
A mainAction() 0 3 1
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