for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace TheCodingMachine\GraphQL\Controllers;
class MissingAnnotationException extends \RuntimeException
{
public static function missingTypeExceptionToUseSourceField(): self
return new self('You cannot use the @SourceField annotation without also adding a @Type annotation.');
}
public static function missingTypeException(): self
return new self('GraphQL type classes must provide a @Type annotation.');
public static function missingExtendTypeException(): self
return new self('Expected a @ExtendType annotation.');