| @@ 88-95 (lines=8) @@ | ||
| 85 | * |
|
| 86 | * @return RequestInterface |
|
| 87 | */ |
|
| 88 | public function notification($method, array $params = null) |
|
| 89 | { |
|
| 90 | return $this->createRequest(RequestInterface::NOTIFICATION, array_filter([ |
|
| 91 | 'jsonrpc' => self::SPEC, |
|
| 92 | 'method' => $method, |
|
| 93 | 'params' => $params, |
|
| 94 | ])); |
|
| 95 | } |
|
| 96 | ||
| 97 | /** |
|
| 98 | * {@inheritdoc} |
|
| @@ 108-116 (lines=9) @@ | ||
| 105 | * |
|
| 106 | * @return RequestInterface |
|
| 107 | */ |
|
| 108 | public function request($id, $method, array $params = null) |
|
| 109 | { |
|
| 110 | return $this->createRequest(RequestInterface::REQUEST, array_filter([ |
|
| 111 | 'jsonrpc' => self::SPEC, |
|
| 112 | 'method' => $method, |
|
| 113 | 'params' => $params, |
|
| 114 | 'id' => $id, |
|
| 115 | ])); |
|
| 116 | } |
|
| 117 | ||
| 118 | /** |
|
| 119 | * {@inheritdoc} |
|