Passed
Pull Request — master (#321)
by Christoffer
03:41 queued 01:17
created

UndefinedFieldException::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

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