NotResolvableFileException   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 7 2
1
<?php
2
3
namespace Lincable\Exceptions;
4
5
class NotResolvableFileException extends \Exception
6
{
7
    /**
8
     * Create a new exception class instance.
9
     *
10
     * @return void
11
     */
12 1
    public function __construct($file)
13
    {
14 1
        if (is_object($file)) {
15 1
            $file = get_class($file);
16
        }
17
18 1
        parent::__construct("Could not resolve [{$file}] to a file.");
19 1
    }
20
}
21