Completed
Push — master ( c30481...9edbca )
by Marco
01:21
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
dl 0
loc 7
c 0
b 0
f 0
wmc 1
lcom 0
cbo 0
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A forKey() 0 4 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Fundic\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