StatsCommand   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 2
eloc 4
dl 0
loc 11
ccs 5
cts 5
cp 1
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getResponseParser() 0 4 1
A getCommandLine() 0 3 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Pheanstalk\Command;
6
7
use Pheanstalk\YamlResponseParser;
8
9
/**
10
 * The 'stats' command.
11
 *
12
 * Statistical information about the system as a whole.
13
 */
14
class StatsCommand extends AbstractCommand
15
{
16 7
    public function getCommandLine(): string
17
    {
18 7
        return 'stats';
19
    }
20
21 8
    public function getResponseParser(): \Pheanstalk\Contract\ResponseParserInterface
22
    {
23 8
        return new YamlResponseParser(
24 8
            YamlResponseParser::MODE_DICT
25
        );
26
    }
27
}
28