Completed
Push — master ( a29187...af06a0 )
by Jesse
02:01
created

NoContainerAvailable   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
loc 9
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A for() 0 5 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Stratadox\Hydration\Mapper;
6
7
use BadMethodCallException;
8
9
final class NoContainerAvailable
10
    extends BadMethodCallException
11
    implements InvalidMapperConfiguration
12
{
13
    public static function for(string $class) : InvalidMapperConfiguration
14
    {
15
        return new NoContainerAvailable(sprintf(
16
            'Could not produce mapping due to a missing container for class `%s`',
17
            $class
18
        ));
19
    }
20
}
21