Completed
Pull Request — master (#24)
by David
01:56
created

MissingAnnotationException   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
c 0
b 0
f 0
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A missingTypeException() 0 3 1
1
<?php
2
3
4
namespace TheCodingMachine\GraphQL\Controllers;
5
6
7
class MissingAnnotationException extends \RuntimeException
8
{
9
    public static function missingTypeException(): self
10
    {
11
        return new self('You cannot use the @SourceField annotation without also adding a @Type annotation.');
12
    }
13
}