Completed
Push — master ( 03d9da...2dac9a )
by Tom
13s
created

NotClassDefinitionException::fromServiceName()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 7
rs 9.4285
c 0
b 0
f 0
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 NotClassDefinitionException extends LogicException implements Exception
9
{
10
    use ExceptionConstructorTools;
11
12
    /**
13
     * @param string $name
14
     *
15
     * @return self
16
     */
17
    public static function fromServiceName($name)
18
    {
19
        return self::create(
20
            'Service configuration for "%s" did not create a class definition.',
21
            [$name]
22
        );
23
    }
24
}
25