Exception::getResponseBody()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 1
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
ccs 1
cts 1
cp 1
crap 1
rs 10
c 1
b 0
f 0
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