Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
100.00% covered (success)
100.00%
4 / 4
100.00% covered (success)
100.00%
1 / 1
CRAP
100.00% covered (success)
100.00%
1 / 1
QuitCommand
100.00% covered (success)
100.00%
4 / 4
100.00% covered (success)
100.00%
1 / 1
1
100.00% covered (success)
100.00%
1 / 1
 run
100.00% covered (success)
100.00%
4 / 4
100.00% covered (success)
100.00%
1 / 1
1
1<?php
2namespace Apie\FtpServer\Commands;
3
4use Apie\Core\Context\ApieContext;
5use React\Socket\ConnectionInterface;
6
7class QuitCommand implements CommandInterface
8{
9    public function run(ApieContext $apieContext, string $arg = ''): ApieContext
10    {
11        $conn = $apieContext->getContext(ConnectionInterface::class);
12        $conn->write("221 Goodbye\r\n");
13        $conn->end();
14        return $apieContext;
15    }
16}