| @@ 69-76 (lines=8) @@ | ||
| 66 | * @param array $params |
|
| 67 | * @return RequestInterface |
|
| 68 | */ |
|
| 69 | public function notification($method, array $params = null) |
|
| 70 | { |
|
| 71 | return $this->createRequest(RequestInterface::NOTIFICATION, array_filter([ |
|
| 72 | 'jsonrpc' => static::SPEC, |
|
| 73 | 'method' => $method, |
|
| 74 | 'params' => $params |
|
| 75 | ])); |
|
| 76 | } |
|
| 77 | ||
| 78 | /** |
|
| 79 | * {@inheritdoc} |
|
| @@ 87-95 (lines=9) @@ | ||
| 84 | * @param array $params |
|
| 85 | * @return RequestInterface |
|
| 86 | */ |
|
| 87 | public function request($id, $method, array $params = null) |
|
| 88 | { |
|
| 89 | return $this->createRequest(RequestInterface::REQUEST, array_filter([ |
|
| 90 | 'jsonrpc' => static::SPEC, |
|
| 91 | 'method' => $method, |
|
| 92 | 'params' => $params, |
|
| 93 | 'id' => $id |
|
| 94 | ])); |
|
| 95 | } |
|
| 96 | ||
| 97 | /** |
|
| 98 | * {@inheritdoc} |
|