Command   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 33
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

Changes 2
Bugs 0 Features 0
Metric Value
wmc 3
c 2
b 0
f 0
lcom 0
cbo 0
dl 0
loc 33
ccs 7
cts 7
cp 1
rs 10

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A isMultiLine() 0 4 1
A isCompressed() 0 4 1
1
<?php
2
3
/*
4
 * This file is part of the NNTP library.
5
 *
6
 * (c) Robin van der Vleuten <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace Rvdv\Nntp\Command;
13
14
/**
15
 * @author Robin van der Vleuten <[email protected]>
16
 */
17
abstract class Command implements CommandInterface
18
{
19
    /**
20
     * @var bool
21
     */
22
    protected $isMultiLine;
23
24
    /**
25
     * Constructor.
26
     *
27
     * @param bool $isMultiLine a bool indicating the response is multiline or not
28
     */
29 100
    public function __construct($isMultiLine = false)
30
    {
31 100
        $this->isMultiLine = $isMultiLine;
32 100
    }
33
34
    /**
35
     * {@inheritdoc}
36
     */
37 14
    public function isMultiLine()
38
    {
39 14
        return $this->isMultiLine;
40
    }
41
42
    /**
43
     * {@inheritdoc}
44
     */
45 13
    public function isCompressed()
46
    {
47 13
        return false;
48
    }
49
}
50