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

CallError   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
c 0
b 0
f 0
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 4 1
A getBaseException() 0 4 1
1
<?php
2
3
namespace PhpJsonRpc\Core\Call;
4
5
use PhpJsonRpc\Error\JsonRpcException;
6
7
class CallError extends AbstractCall
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