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