marcosh/fundic

View on GitHub
src/Exception/NotFoundException.php

Summary

Maintainability
A
0 mins
Test Coverage
<?php

declare(strict_types=1);

namespace Fundic\Exception;

use Psr\Container\NotFoundExceptionInterface;

final class NotFoundException extends \RuntimeException implements ExceptionInterface, NotFoundExceptionInterface
{
    public static function forKey(string $id) : self
    {
        return new self(sprintf('No entry was found for %s identifier', $id));
    }
}