Passed
Pull Request — master (#321)
by Christoffer
04:21 queued 01:06
created

UndefinedFieldException   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
1
<?php
2
3
namespace Digia\GraphQL\Execution;
4
5
use Digia\GraphQL\Error\AbstractException;
6
7
class UndefinedFieldException extends AbstractException
8
{
9
    /**
10
     * UndefinedFieldDefinitionException constructor.
11
     */
12
    public function __construct(string $fieldName)
13
    {
14
        parent::__construct(\sprintf('Undefined field "%s".', $fieldName));
15
    }
16
}
17