Passed
Push — master ( 772c92...f3c67a )
by Evgeniy
01:14 queued 12s
created

NotFound::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 2
CRAP Score 1

Importance

Changes 1
Bugs 1 Features 0
Metric Value
cc 1
eloc 1
nc 1
nop 1
dl 0
loc 3
ccs 2
cts 2
cp 1
crap 1
rs 10
c 1
b 1
f 0
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Cekta\DI\Exception;
6
7
use Psr\Container\NotFoundExceptionInterface;
8
use RuntimeException;
9
10
class NotFound extends RuntimeException implements NotFoundExceptionInterface
11
{
12 12
    public function __construct(string $id)
13
    {
14 12
        parent::__construct("Container `${id}` not found");
15 12
    }
16
}
17