Conditions | 1 |
Paths | 1 |
Total Lines | 15 |
Code Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | <?php declare(strict_types=1); |
||
40 | // @codingStandardsIgnoreStart |
||
41 | protected function _subscribe(ObserverInterface $observer): DisposableInterface |
||
42 | { |
||
43 | // @codingStandardsIgnoreEnd |
||
44 | $body = $this->response->getBody(); |
||
45 | $body->on('data', [$observer, 'onNext']); |
||
46 | $body->on('error', [$observer, 'onError']); |
||
47 | $body->on('end', [$observer, 'onCompleted']); |
||
48 | |||
49 | return new EmptyDisposable(); |
||
50 | } |
||
51 | } |
||
52 |