1 | <?php |
||
2 | |||
3 | /** |
||
4 | * Created by PhpStorm. |
||
5 | * Project: json-rpc-server |
||
6 | * User: sv |
||
7 | * Date: 03.07.2020 |
||
8 | * Time: 15:32 |
||
9 | */ |
||
10 | |||
11 | declare(strict_types=1); |
||
12 | |||
13 | namespace Onnov\JsonRpcServer\Result; |
||
14 | |||
15 | /** |
||
16 | * Class RpcResultArray |
||
17 | * |
||
18 | * @package Onnov\JsonRpcServer\Result |
||
19 | */ |
||
20 | class RpcResultArray extends RpcResultAbstract |
||
21 | { |
||
22 | /** |
||
23 | * RpcResultArray constructor. |
||
24 | * |
||
25 | * @param mixed[] $result |
||
26 | */ |
||
27 | public function __construct(array $result) |
||
28 | { |
||
29 | $this->result = $result; |
||
30 | } |
||
31 | |||
32 | /** |
||
33 | * @return mixed[] |
||
34 | */ |
||
35 | public function getResult(): array |
||
36 | { |
||
37 | return $this->result; |
||
0 ignored issues
–
show
Bug
Best Practice
introduced
by
![]() |
|||
38 | } |
||
39 | } |
||
40 |