Exception::getBody()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 0
Metric Value
dl 0
loc 4
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 0
crap 1
1
<?php namespace Stevenmaguire\Uber;
2
3
use \Exception as BaseException;
4
5
class Exception extends BaseException
6
{
7
    /**
8
     * Exception body
9
     *
10
     * @var string|array
11
     */
12
    protected $body;
13
14
    /**
15
     * Get exception body
16
     *
17
     * @return string|array
18
     */
19 2
    public function getBody()
20
    {
21 2
        return $this->body;
22
    }
23
24
    /**
25
     * Set exception body
26
     *
27
     * @param string|array $body
28
     *
29
     * @return $this
30
     */
31 4
    public function setBody($body = null)
32
    {
33 4
        $this->body = $body;
34
35 4
        return $this;
36
    }
37
}
38