packages/sql-semantics-postgres/resources/models/Choice/EmptyGroupingSetChoice_aa65a62c.php

1<?php
2
3declare(strict_types=1);
4
5namespace SqlSemantics\Statement\Model\PostgreSql\Choice;
6
7/**
8 * The empty_grouping_set SQL value; generated by bin/build-models.php.
9 *
10 * @visibility public
11 * @example Accept a structured SQL value
12 *     $write = static fn (\SqlSemantics\Statement\Model\PostgreSql\Choice\EmptyGroupingSetChoice_aa65a62c $value): string => \SqlSemantics\Statement\Writer::render($value);
13 *     $write instanceof \Closure // => true
14 */
15enum EmptyGroupingSetChoice_aa65a62c: string implements \SqlSemantics\Statement\Model\PostgreSql\Role\EmptyGroupingSetForm, \SqlSemantics\Statement\Model\PostgreSql\Role\GroupByItemForm, \SqlSemantics\Statement\Model\PostgreSql\Role\GroupByListForm
16{
17    case Use_e779214a = '( )';
18
19    /**
20     * Writes the selected SQL option.
21     */
22    public function write(\SqlSemantics\Statement\Writer $writer): void
23    {
24        foreach (explode(' ', $this->value) as $word) {
25            $writer->append($word);
26        }
27    }
28}
29