ContainerException   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A forKeyWithInner() 0 8 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Fundic\Exception;
6
7
use Psr\Container\ContainerExceptionInterface;
8
use Throwable;
9
10
final class ContainerException extends \RuntimeException implements ExceptionInterface, ContainerExceptionInterface
11
{
12
    public static function forKeyWithInner(string $id, Throwable $inner)
13
    {
14
        return new self(
15
            sprintf('Error while retrieving the entry with %s identifier', $id),
16
            0,
17
            $inner
18
        );
19
    }
20
}
21