| 1 | <?php |
||
| 11 | final class DataRequest implements RequestInterface |
||
| 12 | { |
||
| 13 | /** |
||
| 14 | * @var StreamInterface |
||
| 15 | */ |
||
| 16 | private $stream; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * @param StreamInterface $stream |
||
| 20 | */ |
||
| 21 | 7 | public function __construct(StreamInterface $stream) |
|
| 25 | |||
| 26 | /** |
||
| 27 | * @param ConnectionInterface $connection |
||
| 28 | * @return void |
||
| 29 | */ |
||
| 30 | 7 | public function execute(ConnectionInterface $connection): void |
|
| 38 | |||
| 39 | /** |
||
| 40 | * @param ConnectionInterface $connection |
||
| 41 | * @param string $line |
||
| 42 | */ |
||
| 43 | 7 | private function sendLine(ConnectionInterface $connection, string $line): void |
|
| 53 | } |
||
| 54 |