Completed
Pull Request — master (#78)
by David
02:20 queued 10s
created

missingExtendTypeException()   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
rs 10
c 0
b 0
f 0
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 missingTypeExceptionToUseSourceField(): self
10
    {
11
        return new self('You cannot use the @SourceField annotation without also adding a @Type annotation.');
12
    }
13
14
    public static function missingTypeException(): self
15
    {
16
        return new self('GraphQL type classes must provide a @Type annotation.');
17
    }
18
19
    public static function missingExtendTypeException(): self
20
    {
21
        return new self('Expected a @ExtendType annotation.');
22
    }
23
}
24