CommandGeneric   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 1
dl 0
loc 23
ccs 5
cts 5
cp 1
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getCommandText() 0 4 1
1
<?php
2
3
/**
4
 * This file is part of graze/dynamark3-client.
5
 *
6
 * Copyright (c) 2016 Nature Delivered Ltd. <https://www.graze.com>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 *
11
 * @license https://github.com/graze/dynamark3-client/blob/master/LICENSE.md
12
 * @link    https://github.com/graze/dynamark3-client
13
 */
14
15
namespace Graze\Dynamark3Client\Command;
16
17
class CommandGeneric extends AbstractCommand
18
{
19
    /**
20
     * @var string
21
     */
22
    protected $commandText;
23
24
    /**
25
     * @param string $commandText
26
     */
27 4
    public function __construct($commandText)
28
    {
29 4
        $this->commandText = $commandText;
30 4
    }
31
32
    /**
33
     * @return string
34
     */
35 1
    public function getCommandText()
36
    {
37 1
        return $this->commandText;
38
    }
39
}
40