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

1<?php
2
3declare(strict_types=1);
4
5namespace SqlSemantics\Statement\Model\PostgreSql\Choice;
6
7/**
8 * The opt_xml_root_standalone 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\OptXmlRootStandaloneChoice_ae61114a $value): string => \SqlSemantics\Statement\Writer::render($value);
13 *     $write instanceof \Closure // => true
14 */
15enum OptXmlRootStandaloneChoice_ae61114a: string implements \SqlSemantics\Statement\Model\PostgreSql\Role\OptXmlRootStandaloneForm
16{
17    case UseStandaloneYes_756500b8 = ', STANDALONE YES';
18    case UseStandaloneNo_8bb18c62 = ', STANDALONE NO';
19    case UseStandaloneNoValue_9d3ce50a = ', STANDALONE NO VALUE';
20    case Use_e3b0c442 = '';
21
22    /**
23     * Writes the selected SQL option.
24     */
25    public function write(\SqlSemantics\Statement\Writer $writer): void
26    {
27        foreach (explode(' ', $this->value) as $word) {
28            $writer->append($word);
29        }
30    }
31}
32