GraphQL\Language\Printer::block PHP Method

block() public method

Given array, print each item on its own line, wrapped in an indented "{ }" block.
public block ( $array )
    public function block($array)
    {
        return $array && $this->length($array) ? $this->indent("{\n" . $this->join($array, "\n")) . "\n}" : '{}';
    }