src/Schema/Factories/DirectiveFactory.php
protected function hydrate(Directive $directive, $definitionNode): Directive
    {
        return $directive instanceof BaseDirective
            ? $directive->hydrate($definitionNode)
            : $directive;
    }
protected function hydrate(Directive $directive, $definitionNode): Directive
    {
        return $directive instanceof BaseDirective
            ? $directive->hydrate($definitionNode)
            : $directive;
    }
protected function hydrate ( Directive $ directive , $ definitionNode ) : Directive { return $ directive instanceof BaseDirective ? $ directive -> hydrate ( $ definitionNode ) : $ directive ; }
Set the given definition on the directive.

@param  \Nuwave\Lighthouse\Support\Contracts\Directive  $directive
@param  \GraphQL\Language\AST\TypeSystemDefinitionNode  $definitionNode
@return \Nuwave\Lighthouse\Support\Contracts\Directive
Set the given definition on the directive .