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

MissingAnnotationException::missingTypeException()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

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