Completed
Push — dev ( f0eb90...48c810 )
by Yan
02:10
created

NotResolvableFileException::__construct()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 7
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 2
eloc 3
nc 2
nop 1
dl 0
loc 7
rs 10
c 0
b 0
f 0
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
    public function __construct($file)
13
    {
14
        if (is_object($file)) {
15
            $file = get_class($file);
16
        }
17
18
        parent::__construct("Could not resolve [{$file}] to a file.");
19
    }
20
}