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

Pause   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 29
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Importance

Changes 1
Bugs 1 Features 0
Metric Value
wmc 2
c 1
b 1
f 0
lcom 1
cbo 1
dl 0
loc 29
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getCommand() 0 4 1
A setArguments() 0 6 1
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
}