GraphQL\Validator\Rules\LoneAnonymousOperation::anonOperationNotAloneMessage PHP Method

anonOperationNotAloneMessage() static public method

static public anonOperationNotAloneMessage ( )
    static function anonOperationNotAloneMessage()
    {
        return 'This anonymous operation must be the only defined operation.';
    }

Usage Example

 private function anonNotAlone($line, $column)
 {
     return FormattedError::create(LoneAnonymousOperation::anonOperationNotAloneMessage(), [new SourceLocation($line, $column)]);
 }