Passed
Branch develop (8534ca)
by Aleksandr
03:12
created

AbstractCommandWrapper   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 1
eloc 4
dl 0
loc 22
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A sendCommand() 0 3 1
1
<?php
2
3
namespace AlexCool\Rcon\Command\Wrapper;
4
5
use AlexCool\Rcon\Client\ClientInterface;
6
use AlexCool\Rcon\Utils\CommandFormatter;
7
8
/**
9
 * @package AlexCool\Rcon\Command\Wrapper
10
 */
11
abstract class AbstractCommandWrapper
12
{
13
    /**
14
     * @var ClientInterface
15
     */
16
    protected $client;
17
18
    /**
19
     * @var CommandFormatter
20
     */
21
    protected $commandFormatter;
22
23
    /**
24
     * Send raw command
25
     *
26
     * @param string $command
27
     *
28
     * @return bool|mixed
29
     */
30
    final public function sendCommand(string $command)
31
    {
32
        return $this->client->sendCommand($command);
33
    }
34
}
35