InvalidDefinitionException::unavailable()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

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