Completed
Push — master ( 391b65...49cdab )
by David
14s
created

NotFoundException::notFound()   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
rs 10
c 0
b 0
f 0
cc 1
eloc 2
nc 1
nop 1
1
<?php
2
3
4
namespace TheCodingMachine\GraphQL\Controllers\Registry;
5
6
use Psr\Container\NotFoundExceptionInterface;
7
8
class NotFoundException extends \RuntimeException implements NotFoundExceptionInterface
9
{
10
    public static function notFound(string $id): NotFoundException
11
    {
12
        return new self('Could not find entry with ID / type with class "'.$id.'"');
13
    }
14
}
15