Completed
Branch master (af06a0)
by Jesse
03:24 queued 31s
created

NoContainerAvailable::for()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

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