Code Coverage |
||||||||||
Lines |
Functions and Methods |
Classes and Traits |
||||||||
| Total | |
0.00% |
0 / 3 |
|
0.00% |
0 / 2 |
CRAP | |
0.00% |
0 / 1 |
| NoTransferSet | |
0.00% |
0 / 3 |
|
0.00% |
0 / 2 |
12 | |
0.00% |
0 / 1 |
| send | |
0.00% |
0 / 2 |
|
0.00% |
0 / 1 |
6 | |||
| end | |
0.00% |
0 / 1 |
|
0.00% |
0 / 1 |
2 | |||
| 1 | <?php |
| 2 | namespace Apie\FtpServer\Transfers; |
| 3 | |
| 4 | class NoTransferSet implements TransferInterface |
| 5 | { |
| 6 | public function send(string $data, ?callable $onRejected = null): void |
| 7 | { |
| 8 | if ($onRejected !== null) { |
| 9 | call_user_func($onRejected, new \RuntimeException('No transfer mode (PORT or PASV) set.')); |
| 10 | } |
| 11 | } |
| 12 | |
| 13 | public function end(): void |
| 14 | { |
| 15 | } |
| 16 | } |