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

StatsCommand::getResponseParser()   A

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 1
Bugs 0 Features 0
Metric Value
eloc 1
c 1
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
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