@@ 276-283 (lines=8) @@ | ||
273 | /** |
|
274 | * @internal |
|
275 | */ |
|
276 | protected function handleStart() |
|
277 | { |
|
278 | if ($this->stream !== null) |
|
279 | { |
|
280 | $this->stream->on('data', [ $this, 'handleData' ]); |
|
281 | $this->stream->on('close', [ $this, 'stop' ]); |
|
282 | } |
|
283 | } |
|
284 | ||
285 | /** |
|
286 | * @internal |
|
@@ 288-295 (lines=8) @@ | ||
285 | /** |
|
286 | * @internal |
|
287 | */ |
|
288 | protected function handleStop() |
|
289 | { |
|
290 | if ($this->stream !== null) |
|
291 | { |
|
292 | $this->stream->removeListener('data', [ $this, 'handleData' ]); |
|
293 | $this->stream->removeListener('close', [ $this, 'stop' ]); |
|
294 | } |
|
295 | } |
|
296 | ||
297 | /** |
|
298 | * @internal |