interfaceChoice
interface Choice
Public API: explicitly declared with
@visibility public.A closed set of words that a definition attribute accepts as its value.
The command reads the value as text and compares it with the words it knows; each set decides whether the comparison ignores case, as its command does. Source: https://www.postgresql.org/docs/17/sql-createtype.html, https://www.postgresql.org/docs/17/sql-createaggregate.html, https://www.postgresql.org/docs/17/sql-createcollation.html.
\SqlSemantics\Platform\PostgreSql\Statement\Object\Attribute\Choice\Alignment::read('float8')?->name // => 'Double'Methods§
public static function read(string $text): ?selfAnswers the member the text names, or null when the command rejects the text.
Parameters
$text | string |
Returns
?selfTest cases 1§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Dedicated tests 1
Relations§
Implemented by 5
- Alignment packages/sql-semantics-postgres/src/Statement/Object/Attribute/Choice/Alignment.php:20
- CollationProvider packages/sql-semantics-postgres/src/Statement/Object/Attribute/Choice/CollationProvider.php:19
- FinalModification packages/sql-semantics-postgres/src/Statement/Object/Attribute/Choice/FinalModification.php:18
- Parallelism packages/sql-semantics-postgres/src/Statement/Object/Attribute/Choice/Parallelism.php:19
- StorageStrategy packages/sql-semantics-postgres/src/Statement/Object/Attribute/Choice/StorageStrategy.php:17