Completed
Push — master ( c30481...9edbca )
by Marco
01:21
created

NotFoundException::forKey()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
c 0
b 0
f 0
rs 10
cc 1
eloc 2
nc 1
nop 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