Test Failed
Push — master ( 0fcd0f...4e8aa2 )
by Pavel
04:49 queued 16s
created

MapperException::unsupportedClass()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 6
rs 9.4285
cc 1
eloc 3
nc 1
nop 1
1
<?php
2
3
namespace ScayTrase\Api\Cruds\Exception;
4
5
class MapperException extends \RuntimeException implements CrudsExceptionInterface
6
{
7
    public static function unsupportedClass($class)
8
    {
9
        return new static(
10
            sprintf('Class "%s" is not supported by this mapper', $class)
11
        );
12
    }
13
}
14