Completed
Push — master ( 41762b...d48513 )
by John
05:24 queued 03:02
created

CommandSetxml::getArgumentText()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 8
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 2.0625

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 8
ccs 3
cts 4
cp 0.75
rs 9.4285
cc 2
eloc 4
nc 2
nop 1
crap 2.0625
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
use \Graze\TelnetClient\TelnetResponseInterface;
18
19
class CommandSetxml extends AbstractCommand
20
{
21
    /**
22
     * @return string
23
     */
24
    public function getCommandText()
25
    {
26
        return 'SETXML';
27
    }
28
29
    /**
30
     * @param array $arguments
31
     *
32
     * @return string
33
     */
34 1
    public function getArgumentText(array $arguments)
35
    {
36 1
        if (empty($arguments)) {
37
            return '';
38
        }
39
40 1
        return ' ' . implode(' ', $arguments);
41
    }
42
}
43