| 1 | <?php |
||
| 14 | final class Response implements RpcResponseInterface |
||
| 15 | { |
||
| 16 | private $body; |
||
| 17 | |||
| 18 | /** |
||
| 19 | * Response constructor. |
||
| 20 | * |
||
| 21 | * @param $body |
||
| 22 | */ |
||
| 23 | public function __construct($body) { $this->body = $body; } |
||
| 24 | |||
| 25 | |||
| 26 | /** @return bool */ |
||
| 27 | public function isSuccessful() |
||
| 31 | |||
| 32 | /** @return RpcErrorInterface|null */ |
||
| 33 | public function getError() |
||
| 37 | |||
| 38 | /** @return \stdClass|array|mixed|null */ |
||
| 39 | 3 | public function getBody() |
|
| 43 | } |
||
| 44 |