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\Invoke;
4
5
use PhpJsonRpc\Error\JsonRpcException;
6
7
class Error extends AbstractInvoke
8
{
9
    /**
10
     * @var JsonRpcException
11
     */
12
    private $baseException;
13
14
    /**
15
     * ErrorUnit constructor.
16
     *
17
     * @param JsonRpcException $baseException
18
     */
19
    public function __construct(JsonRpcException $baseException)
20
    {
21
        $this->baseException = $baseException;
22
    }
23
24
    /**
25
     * @return JsonRpcException
26
     */
27
    public function getBaseException()
28
    {
29
        return $this->baseException;
30
    }
31
}
32