Completed
Push — master ( c0fcd4...3f6cab )
by Mariano
05:50
created

QStat   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 26
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
lcom 0
cbo 1
dl 0
loc 26
ccs 2
cts 2
cp 1
rs 10
c 1
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A getCommand() 0 4 1
1
<?php
2
3
namespace Disque\Command;
4
5
use Disque\Command\Response\KeyValueResponse;
6
use Disque\Exception;
7
8
class QStat extends BaseCommand implements CommandInterface
9
{
10
    /**
11
     * Tells the argument types for this command
12
     *
13
     * @var int
14
     */
15
    protected $argumentsType = self::ARGUMENTS_TYPE_STRING;
16
17
    /**
18
     * Tells which class handles the response
19
     *
20
     * @var int
21
     */
22
    protected $responseHandler = KeyValueResponse::class;
23
24
    /**
25
     * Get command
26
     *
27
     * @return string Command
28
     */
29 18
    public function getCommand()
30
    {
31 18
        return 'QSTAT';
32
    }
33
}
34