| Total Complexity | 3 | 
| Total Lines | 33 | 
| Duplicated Lines | 0 % | 
| Coverage | 100% | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php | ||
| 12 | class OnRequestReceivedEvent implements JsonRpcServerEvent | ||
| 13 | { | ||
| 14 | const EVENT_NAME = 'json_rpc_server_skd.on_request_received'; | ||
| 15 | |||
| 16 | /** @var string */ | ||
| 17 | private $request; | ||
| 18 | /** @var JsonRpcCall */ | ||
| 19 | private $jsonRpcCall; | ||
| 20 | |||
| 21 | /** | ||
| 22 | * @param string $request | ||
| 23 | * @param JsonRpcCall $jsonRpcCall | ||
| 24 | */ | ||
| 25 | 25 | public function __construct(string $request, JsonRpcCall $jsonRpcCall) | |
| 26 |     { | ||
| 27 | 25 | $this->request = $request; | |
| 28 | 25 | $this->jsonRpcCall = $jsonRpcCall; | |
| 29 | } | ||
| 30 | |||
| 31 | /** | ||
| 32 | * @return string | ||
| 33 | */ | ||
| 34 | 1 | public function getRequest() : string | |
| 37 | } | ||
| 38 | |||
| 39 | /** | ||
| 40 | * @return JsonRpcCall | ||
| 41 | */ | ||
| 42 | 1 | public function getJsonRpcCall() : JsonRpcCall | |
| 45 | } | ||
| 46 | } | ||
| 47 |