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