src/Schema/AST/ASTHelper.php
public static function directiveHasArgument(DirectiveNode $directiveDefinition, string $name): bool
    {
        return (new Collection($directiveDefinition->arguments))
            ->contains(function (ArgumentNode $argumentNode) use ($name): bool {
                return $argumentNode->name->value === $name;
            });
    }
public static function directiveHasArgument(DirectiveNode $directiveDefinition, string $name): bool
    {
        return (new Collection($directiveDefinition->arguments))
            ->contains(function (ArgumentNode $argumentNode) use ($name): bool {
                return $argumentNode->name->value === $name;
            });
    }
public static function directiveHasArgument ( DirectiveNode $ directiveDefinition , string $ name ) : bool { return ( new Collection ( $ directiveDefinition -> arguments ) ) -> contains ( function ( ArgumentNode $ argumentNode ) use ( $ name ) : bool { return $ argumentNode -> name -> value === $ name ; } ) ; }
Does the given directive have an argument of the given name?

@param  \GraphQL\Language\AST\DirectiveNode  $directiveDefinition
@param  string  $name
@return bool
Does the given directive have an argument of the given name?