RpcResultObject   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
eloc 4
c 0
b 0
f 0
dl 0
loc 23
ccs 0
cts 4
cp 0
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getResult() 0 3 1
A __construct() 0 3 1
1
<?php
2
3
/**
4
 * Created by PhpStorm.
5
 * Project: json-rpc-server
6
 * User: sv
7
 * Date: 06.01.2021
8
 * Time: 22:00
9
 */
10
11
declare(strict_types=1);
12
13
namespace Onnov\JsonRpcServer\Result;
14
15
use stdClass;
16
17
/**
18
 * Class RpcResultObject
19
 *
20
 * @package Onnov\JsonRpcServer\Result
21
 */
22
class RpcResultObject implements RpcResultInterface
23
{
24
    /**
25
     * @var stdClass
26
     */
27
    protected $result;
28
29
    /**
30
     * RpcResultArray constructor.
31
     *
32
     * @param stdClass $result
33
     */
34
    public function __construct(stdClass $result)
35
    {
36
        $this->result = $result;
37
    }
38
39
    /**
40
     * @return stdClass
41
     */
42
    public function getResult(): stdClass
43
    {
44
        return $this->result;
45
    }
46
}
47