| 1 | <?php |
||
| 8 | final class Response implements RpcResponseInterface |
||
| 9 | { |
||
| 10 | private $body; |
||
| 11 | |||
| 12 | /** |
||
| 13 | * Response constructor. |
||
| 14 | * |
||
| 15 | * @param $body |
||
| 16 | */ |
||
| 17 | 4 | public function __construct($body) |
|
| 21 | |||
| 22 | /** @return bool */ |
||
| 23 | public function isSuccessful() |
||
| 27 | |||
| 28 | /** @return RpcErrorInterface|null */ |
||
| 29 | public function getError() |
||
| 33 | |||
| 34 | /** @return \stdClass|array|mixed|null */ |
||
| 35 | 4 | public function getBody() |
|
| 39 | } |
||
| 40 |