Completed
Push — master ( 76be0a...39bc69 )
by Mariano
02:47
created

Pause::getCommand()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 1 Features 0
Metric Value
c 1
b 1
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 0
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
}