Exception   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A display() 0 3 1
A __construct() 0 3 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