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

Error   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 1
dl 0
loc 25
rs 10
c 0
b 0
f 0

2 Methods

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