| 1 | <?php |
||
| 5 | final class JsonRpcNotification implements JsonRpcRequestInterface |
||
| 6 | { |
||
| 7 | /** @var string */ |
||
| 8 | private $method; |
||
| 9 | /** @var \stdClass|array|null */ |
||
| 10 | private $parameters; |
||
| 11 | |||
| 12 | /** |
||
| 13 | * JsonRpcNotificationRequest constructor. |
||
| 14 | * @param string $method |
||
| 15 | * @param \stdClass|array|null $parameters |
||
| 16 | */ |
||
| 17 | 2 | public function __construct($method, $parameters) |
|
| 22 | |||
| 23 | /** {@inheritdoc} */ |
||
| 24 | public function getId() |
||
| 28 | |||
| 29 | /** {@inheritdoc} */ |
||
| 30 | 2 | public function isNotification() |
|
| 34 | |||
| 35 | /** {@inheritdoc} */ |
||
| 36 | 2 | public function getMethod() |
|
| 40 | |||
| 41 | /** {@inheritdoc} */ |
||
| 42 | 2 | public function getParameters() |
|
| 46 | |||
| 47 | /** {@inheritdoc} */ |
||
| 48 | public function getVersion() |
||
| 52 | |||
| 53 | /** {@inheritdoc} */ |
||
| 54 | 2 | public function jsonSerialize() |
|
| 62 | } |
||
| 63 |