Passed
Branch master (f36b3c)
by Matthew
08:01
created

Exception::display()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 1
c 1
b 0
f 0
dl 0
loc 3
ccs 2
cts 2
cp 1
rs 10
cc 1
nc 1
nop 0
crap 1
1
<?php
2
namespace Fyuze\Error\Handlers;
3
4
use Exception as BaseException;
5
6
class Exception
7
{
8
    /**
9
     * @var BaseException
10
     */
11
    protected $exception;
12
13
    /**
14
     * Exception constructor.
15
     *
16
     * @param BaseException $exception
17
     */
18 3
    public function __construct(BaseException $exception)
19
    {
20 3
        $this->exception = $exception;
21
    }
22
23
    /**
24
     *
25
     */
26 3
    public function display()
27
    {
28 3
        echo $this->exception->getMessage();
29
    }
30
}
31