Passed
Push — master ( 4a6f0d...73b924 )
by Valentin
03:29
created

StatsCommand   A

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
use Pheanstalk\XmlResponseParser;
6
use Pheanstalk\YamlResponseParser;
7
8
/**
9
 * The 'stats' command.
10
 *
11
 * Statistical information about the system as a whole.
12
 *
13
 * @author  Paul Annesley
14
 * @package Pheanstalk
15
 * @license http://www.opensource.org/licenses/mit-license.php
16
 */
17
class StatsCommand extends AbstractCommand
18
{
19
    /**
20
     * @inheritDoc
21
     */
22 4
    public function getGroup(): string
23
    {
24 4
        return 'statistics';
25
    }
26
27
    /**
28
     * @inheritDoc
29
     */
30 4
    public function getAction(): string
31
    {
32 4
        return 'query';
33
    }
34
35
    /**
36
     * @inheritDoc
37
     */
38 4
    public function getFilters(): array
39
    {
40
        return [
41 4
            'type' => 'global'
42
        ];
43
    }
44
}
45