Completed
Push — master ( dfc059...c30481 )
by Marco
02:29
created

NotFoundException   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 7
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
wmc 1
lcom 0
cbo 0
dl 0
loc 7
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A forKey() 0 4 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Fundic\Decorator\Exception;
6
7
use Psr\Container\NotFoundExceptionInterface;
8
9
final class NotFoundException extends \RuntimeException implements ExceptionInterface, NotFoundExceptionInterface
10
{
11
    public static function forKey(string $id) : self
12
    {
13
        return new self(sprintf('No entry was found for %s identifier', $id));
14
    }
15
}
16