| Total Complexity | 4 |
| Total Lines | 41 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 0 | ||
| 1 | <?php |
||
| 9 | class JsonRpcRawResponse |
||
| 10 | { |
||
| 11 | /** @var bool */ |
||
| 12 | private $isBatch; |
||
| 13 | /** @var JsonRpcResponse[] */ |
||
| 14 | private $responseList = []; |
||
| 15 | |||
| 16 | /** |
||
| 17 | * @param bool $isBatch |
||
| 18 | */ |
||
| 19 | 2 | public function __construct(bool $isBatch = false) |
|
| 20 | { |
||
| 21 | 2 | $this->isBatch = $isBatch; |
|
| 22 | 2 | } |
|
| 23 | |||
| 24 | /** |
||
| 25 | * @param JsonRpcResponse $response |
||
| 26 | * |
||
| 27 | * @return JsonRpcRawResponse |
||
| 28 | */ |
||
| 29 | 1 | public function addResponse(JsonRpcResponse $response) : JsonRpcRawResponse |
|
| 34 | } |
||
| 35 | |||
| 36 | /** |
||
| 37 | * @return boolean |
||
| 38 | */ |
||
| 39 | 1 | public function isBatch() : bool |
|
| 40 | { |
||
| 41 | 1 | return $this->isBatch; |
|
| 42 | } |
||
| 43 | |||
| 44 | /** |
||
| 45 | * @return JsonRpcResponse[] |
||
| 46 | */ |
||
| 47 | 1 | public function getResponseList() : array |
|
| 50 | } |
||
| 51 | } |
||
| 52 |