| 1 | <?php |
||
| 8 | final class ExtraLazyResponseProxy implements RpcResponseInterface |
||
| 9 | { |
||
| 10 | /** |
||
| 11 | * @var RpcRequestInterface |
||
| 12 | */ |
||
| 13 | private $request; |
||
| 14 | /** |
||
| 15 | * @var LazyResponseCollection |
||
| 16 | */ |
||
| 17 | private $collection; |
||
| 18 | |||
| 19 | /** @var bool */ |
||
| 20 | private $initialized = false; |
||
| 21 | /** @var RpcResponseInterface */ |
||
| 22 | private $response; |
||
| 23 | |||
| 24 | /** |
||
| 25 | * ExtraLazyResponseProxy constructor. |
||
| 26 | * |
||
| 27 | * @param RpcRequestInterface $request |
||
| 28 | * @param LazyResponseCollection $collection |
||
| 29 | */ |
||
| 30 | 1 | public function __construct(RpcRequestInterface $request, LazyResponseCollection $collection) |
|
| 35 | |||
| 36 | /** {@inheritdoc} */ |
||
| 37 | 1 | public function isSuccessful() |
|
| 41 | |||
| 42 | /** {@inheritdoc} */ |
||
| 43 | 1 | public function getError() |
|
| 47 | |||
| 48 | /** {@inheritdoc} */ |
||
| 49 | 1 | public function getBody() |
|
| 53 | |||
| 54 | 1 | private function getInternalResponse() |
|
| 63 | } |
||
| 64 |