Passed
Push — master ( 7a62dc...2dc019 )
by Alexander
02:08
created

NotInstantiableClassException   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 6 2
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Yiisoft\Factory\Exception;
6
7
use Exception;
8
9
final class NotInstantiableClassException extends NotInstantiableException
10
{
11 12
    public function __construct(string $class, string $message = null, int $code = 0, Exception $previous = null)
12
    {
13 12
        if ($message === null) {
14 11
            $message = "Can not instantiate $class.";
15
        }
16 12
        parent::__construct($message, $code, $previous);
17 12
    }
18
}
19