StatsCommand   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 3
eloc 5
c 1
b 0
f 0
dl 0
loc 25
ccs 6
cts 6
cp 1
rs 10

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getGroup() 0 3 1
A getFilters() 0 4 1
A getAction() 0 3 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