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

ResultUnit   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 40
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 3
lcom 0
cbo 1
dl 0
loc 40
c 0
b 0
f 0
rs 10

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 5 1
A getId() 0 4 1
A getResult() 0 4 1
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