Completed
Push — master ( 6918a9...288d30 )
by David
11s
created

CannotMapTypeException   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
wmc 2
eloc 3
dl 0
loc 10
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A createForInputType() 0 3 1
A createForType() 0 3 1
1
<?php
2
3
4
namespace TheCodingMachine\GraphQL\Controllers\Mappers;
5
6
7
class CannotMapTypeException extends \Exception
8
{
9
    public static function createForType(string $className)
10
    {
11
        return new self('Cannot map class "'.$className.'" to a known GraphQL type. Check your TypeMapper configuration.');
12
    }
13
14
    public static function createForInputType(string $className)
15
    {
16
        return new self('Cannot map class "'.$className.'" to a known GraphQL input type. Check your TypeMapper configuration.');
17
    }
18
}