Passed
Pull Request — master (#63)
by David
01:46
created

CannotHydrateException   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 5
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A createForInputType() 0 3 1
1
<?php
2
3
4
namespace TheCodingMachine\GraphQL\Controllers\Hydrators;
5
6
7
use Exception;
8
9
class CannotHydrateException extends Exception
10
{
11
    public static function createForInputType(string $inputTypeName): self
12
    {
13
        return new self('Cannot hydrate type "'.$inputTypeName.'"');
14
    }
15
}
16