Completed
Push — master ( 0c1255...399763 )
by Denis
01:54
created

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