Completed
Push — master ( aba4b4...527af9 )
by Tom
02:29 queued 10s
created

NotContainerAdapterException::fromClassName()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 7
rs 9.4285
cc 1
eloc 4
nc 1
nop 1
1
<?php
2
3
namespace TomPHP\ContainerConfigurator\Exception;
4
5
use LogicException;
6
use TomPHP\ExceptionConstructorTools;
7
8
final class NotContainerAdapterException extends LogicException implements Exception
9
{
10
    use ExceptionConstructorTools;
11
12
    /**
13
     * @param string $name
14
     *
15
     * @return self
16
     */
17
    public static function fromClassName($name)
18
    {
19
        return self::create(
20
            'Class "%s" is not a container adapter.',
21
            [$name]
22
        );
23
    }
24
}
25