Completed
Push — master ( 67a981...19aadf )
by Robin
04:39 queued 02:52
created

QuitCommand::getExpectedResponseCodes()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 1

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 6
ccs 3
cts 3
cp 1
rs 9.4285
cc 1
eloc 3
nc 1
nop 0
crap 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
use Rvdv\Nntp\Response\Response;
15
16
/**
17
 * QuitCommand.
18
 *
19
 * @author Robin van der Vleuten <[email protected]>
20
 */
21
class QuitCommand extends Command implements CommandInterface
22
{
23
    /**
24
     * {@inheritdoc}
25
     */
26 1
    public function __invoke()
27
    {
28 1
        return 'QUIT';
29
    }
30
31 1
    public function onConnectionClosing(Response $response)
0 ignored issues
show
Unused Code introduced by
The parameter $response is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
32
    {
33 1
    }
34
}
35