StatsCommand::getAction()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
eloc 1
c 0
b 0
f 0
dl 0
loc 3
ccs 2
cts 2
cp 1
rs 10
cc 1
nc 1
nop 0
crap 1
1
<?php
2
3
namespace Pheanstalk\Command;
4
5
/**
6
 * The 'stats' command.
7
 *
8
 * Statistical information about the system as a whole.
9
 *
10
 * @author  Valentin Corre
11
 * @package Pheanstalk
12
 * @license http://www.opensource.org/licenses/mit-license.php
13
 */
14
class StatsCommand extends AbstractCommand
15
{
16
    /**
17
     * @inheritDoc
18
     */
19 5
    public function getGroup(): string
20
    {
21 5
        return 'statistics';
22
    }
23
24
    /**
25
     * @inheritDoc
26
     */
27 5
    public function getAction(): string
28
    {
29 5
        return 'query';
30
    }
31
32
    /**
33
     * @inheritDoc
34
     */
35 5
    public function getFilters(): array
36
    {
37
        return [
38 5
            'type' => 'global'
39
        ];
40
    }
41
}
42