CommandAbstract   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 19
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 7
dl 0
loc 19
rs 10
c 0
b 0
f 0
wmc 3

3 Methods

Rating   Name   Duplication   Size   Complexity  
A getCommand() 0 3 1
A getArguments() 0 3 1
A getResponseCallback() 0 3 1
1
<?php
2
declare(strict_types=1);
3
4
namespace Redislabs\Command;
5
6
abstract class CommandAbstract
7
{
8
    protected static $command;
9
    protected $arguments;
10
    protected $responseCallback;
11
12
    final public function getCommand(): string
13
    {
14
        return static::$command;
15
    }
16
17
    final public function getArguments(): array
18
    {
19
        return $this->arguments;
20
    }
21
22
    final public function getResponseCallback() : ?callable
23
    {
24
        return $this->responseCallback;
25
    }
26
}
27