Passed
Push — feature/improve-mapping-interf... ( 71e998...24bbf4 )
by Jesús
03:38
created

DependencyNotFoundException   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 6
c 1
b 0
f 0
dl 0
loc 9
ccs 0
cts 3
cp 0
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A mapNotFoundForClassName() 0 7 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Gacela\Framework\ClassResolver\DependencyResolver;
6
7
use RuntimeException;
8
9
final class DependencyNotFoundException extends RuntimeException
10
{
11
    public static function mapNotFoundForClassName(string $className): self
12
    {
13
        $message = <<<TXT
14
Did you forget to map this interface to a concrete class? No concrete class was found that implements:
15
{$className}
16
TXT;
17
        return new self($message);
18
    }
19
}
20