Passed
Push — master ( 624a9a...4c85b9 )
by Arthur
36:47
created

Guard   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 7
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
eloc 3
dl 0
loc 7
ccs 2
cts 2
cp 1
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A exception() 0 3 1
1
<?php
2
/**
3
 * Created by PhpStorm.
4
 * User: arthur
5
 * Date: 24.03.19
6
 * Time: 19:23
7
 */
8
9
namespace Foundation\Guard\Abstracts;
10
11
use Foundation\Guard\Contracts\GuardContract;
12
use Foundation\Guard\Resolvers\ExceptionResolver;
13
14
abstract class Guard implements GuardContract
15
{
16
    protected $exception;
17
18 1
    public function exception(): \Throwable
19
    {
20 1
        return (new ExceptionResolver($this->exception))->resolve();
21
    }
22
23
}
24