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

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