Test Failed
Pull Request — master (#129)
by Sergei
06:59
created

NotInstantiableClassException::__construct()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 1 Features 0
Metric Value
eloc 3
dl 0
loc 6
c 1
b 1
f 0
rs 10
cc 2
nc 2
nop 4
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
    public function __construct(string $class, string $message = null, int $code = 0, Exception $previous = null)
12
    {
13
        if ($message === null) {
14
            $message = "Can not instantiate $class.";
15
        }
16
        parent::__construct($message, $code, $previous);
17
    }
18
}
19