| 1 | <?php declare(strict_types=1); |
||
| 12 | final class StreamingResponse extends Observable |
||
| 13 | { |
||
| 14 | /** |
||
| 15 | * @var ResponseInterface |
||
| 16 | */ |
||
| 17 | private $response; |
||
| 18 | |||
| 19 | /** |
||
| 20 | * @param ResponseInterface $response |
||
| 21 | */ |
||
| 22 | public function __construct(ResponseInterface $response) |
||
| 26 | |||
| 27 | /** |
||
| 28 | * @return ResponseInterface |
||
| 29 | */ |
||
| 30 | public function getResponse(): ResponseInterface |
||
| 34 | |||
| 35 | /** |
||
| 36 | * @param ObserverInterface $observer |
||
| 37 | * @param SchedulerInterface $scheduler |
||
| 38 | * @return DisposableInterface |
||
| 39 | */ |
||
| 40 | public function subscribe(ObserverInterface $observer, SchedulerInterface $scheduler = null): DisposableInterface |
||
| 55 | } |
||
| 56 |