Completed
Push — master ( 25abe9...41762b )
by John
23s
created

CommandGeneric::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 4
ccs 3
cts 3
cp 1
rs 10
nc 1
cc 1
eloc 2
nop 1
crap 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 3
    public function __construct($commandText)
28
    {
29 3
        $this->commandText = $commandText;
30 3
    }
31
32
    /**
33
     * @return string
34
     */
35 1
    public function getCommandText()
36
    {
37 1
        return $this->commandText;
38
    }
39
}
40