packages/sql-semantics-sqlite/resources/models/Choice/InOpChoice_0915428e.php
1<?php
2
3declare(strict_types=1);
4
5namespace SqlSemantics\Statement\Model\Sqlite\Choice;
6
7/**
8 * The in_op 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\Sqlite\Choice\InOpChoice_0915428e $value): string => \SqlSemantics\Statement\Writer::render($value);
13 * $write instanceof \Closure // => true
14 */
15enum InOpChoice_0915428e: string implements \SqlSemantics\Statement\Model\Sqlite\Role\InOpForm
16{
17 case UseIn_fed1d872 = 'IN';
18 case UseNotIn_d63494f8 = 'NOT IN';
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