Exception   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 33
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Test Coverage

Coverage 100%

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getBody() 0 4 1
A setBody() 0 6 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