Exception   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 31
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 5
dl 0
loc 31
ccs 5
cts 5
cp 1
rs 10
c 1
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getResponseBody() 0 3 1
A setResponseBody() 0 5 1
1
<?php
2
3
namespace Stevenmaguire\Services\Trello\Exceptions;
4
5
use Exception as BaseException;
6
7
class Exception extends BaseException
8
{
9
    /**
10
     * Response body
11
     *
12
     * @var object
13
     */
14
    protected $responseBody;
15
16
    /**
17
     * Retrieves the response body property of exception.
18
     *
19 4
     * @return object
20
     */
21 4
    public function getResponseBody()
22
    {
23
        return $this->responseBody;
24
    }
25
26
    /**
27
     * Updates the response body property of exception.
28
     *
29
     * @param object
30
     *
31 8
     * @return Exception
32
     */
33 8
    public function setResponseBody($responseBody)
34
    {
35 8
        $this->responseBody = $responseBody;
36
37
        return $this;
38 2
    }
39
}
40