Completed
Push — master ( 8bbcd1...4bee86 )
by Denis
04:24
created

ResultUnit::getResult()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
c 0
b 0
f 0
rs 10
cc 1
eloc 2
nc 1
nop 0
1
<?php
2
3
namespace PhpJsonRpc\Core\Result;
4
5
class ResultUnit extends AbstractResult
6
{
7
    /**
8
     * @var mixed
9
     */
10
    private $id;
11
12
    /**
13
     * @var mixed
14
     */
15
    private $result;
16
17
    /**
18
     * RpcResult constructor.
19
     *
20
     * @param mixed $id
21
     * @param mixed $result
22
     */
23
    public function __construct($id, $result)
24
    {
25
        $this->id     = $id;
26
        $this->result = $result;
27
    }
28
29
    /**
30
     * @return mixed
31
     */
32
    public function getId()
33
    {
34
        return $this->id;
35
    }
36
37
    /**
38
     * @return mixed
39
     */
40
    public function getResult()
41
    {
42
        return $this->result;
43
    }
44
}
45