GraphQL\Language\AST\Node::__toString PHP Method

__toString() public method

public __toString ( ) : string
return string
    public function __toString()
    {
        $tmp = (array) $this;
        $tmp['loc'] = ['start' => $this->loc->start, 'end' => $this->loc->end];
        return json_encode($tmp);
    }