Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
0.00% |
0 / 4 |
|
0.00% |
0 / 1 |
CRAP | |
0.00% |
0 / 1 |
| QuitCommand | |
0.00% |
0 / 4 |
|
0.00% |
0 / 1 |
2 | |
0.00% |
0 / 1 |
| run | |
0.00% |
0 / 4 |
|
0.00% |
0 / 1 |
2 | |||
| 1 | <?php |
| 2 | namespace Apie\FtpServer\Commands; |
| 3 | |
| 4 | use Apie\Core\Context\ApieContext; |
| 5 | use React\Socket\ConnectionInterface; |
| 6 | |
| 7 | class 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 | } |