Conditions | 1 |
Paths | 1 |
Total Lines | 10 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
12 | public function factory(array $requestMessage) |
||
13 | { |
||
14 | $this->validateRequiredFields($requestMessage); |
||
15 | |||
16 | $request = new RpcRequest($requestMessage['params']); |
||
17 | $request->setId($requestMessage['id']); |
||
18 | $request->setMethod($requestMessage['method']); |
||
19 | |||
20 | return $request; |
||
21 | } |
||
22 | |||
35 | } |