src/Schema/AST/DocumentAST.php
public function serialize(): string
    {
        return serialize(
            $this->definitionMap
                ->mapWithKeys(function (DefinitionNode $node, string $key): array {
                    return [$key => AST::toArray($node)];
                })
        );
    }
public function serialize(): string
    {
        return serialize(
            $this->definitionMap
                ->mapWithKeys(function (DefinitionNode $node, string $key): array {
                    return [$key => AST::toArray($node)];
                })
        );
    }
public function serialize ( ) : string { return serialize ( $ this -> definitionMap -> mapWithKeys ( function ( DefinitionNode $ node , string $ key ) : array { return [ $ key => AST :: toArray ( $ node ) ] ; } ) ) ; }
Strip out irrelevant information to make serialization more efficient.

@return string
Strip out irrelevant information to make serialization more efficient .