Passed
Push — master ( 4114ff...45d38b )
by Christoffer
02:52
created

SyntaxErrorException   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 6
dl 0
loc 15
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 7 1
1
<?php
2
3
namespace Digia\GraphQL\Language;
4
5
use Digia\GraphQL\Error\GraphQLException;
6
7
class SyntaxErrorException extends GraphQLException
8
{
9
    /**
10
     * SyntaxErrorException constructor.
11
     * @param Source $source
12
     * @param int    $position
13
     * @param string $description
14
     */
15
    public function __construct(Source $source, int $position, string $description)
16
    {
17
        parent::__construct(
18
            sprintf('Syntax Error: %s', $description),
19
            null,
20
            $source,
21
            [$position]
22
        );
23
    }
24
}
25