Pause::getCommand()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 0
cts 4
cp 0
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
crap 2
1
<?php
2
namespace Disque\Command;
3
4
use Disque\Command\Response\StringResponse;
5
6
/**
7
 * Pause a queue.
8
 */
9
class Pause extends BaseCommand implements CommandInterface
10
{
11
    /**
12
     * @inheritdoc
13
     */
14
    protected $responseHandler = StringResponse::class;
15
16
    /**
17
     * @inheritdoc
18
     */
19
    public function getCommand()
20
    {
21
        return 'PAUSE';
22
    }
23
24
    /**
25
     * Set arguments for the command
26
     *
27
     * @param array $arguments Arguments
28
     * @return void
29
     * @throws InvalidCommandArgumentException
30
     */
31
    public function setArguments(array $arguments)
32
    {
33
        $this->checkStringArgument($arguments, 2);
34
        $this->checkStringArguments($arguments);
35
        $this->arguments = $arguments;
36
    }
37
}