InvalidDefinitionException   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 5
dl 0
loc 8
rs 10
c 1
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A unavailable() 0 6 1
1
<?php
2
declare(strict_types=1);
3
4
namespace Habemus\Exception;
5
6
class InvalidDefinitionException extends ContainerException
7
{
8
    public static function unavailable($name): self
9
    {
10
        return new self(
11
            sprintf(
12
                "The definition of type (%s) is invalid or unavailable.",
13
                $name
14
            )
15
        );
16
    }
17
}
18