final class CharsetName
    implements Node
    uses Snapshot
Public API: explicitly declared with @visibility public.

A character set at a position that names one: a character set name or the keyword DEFAULT.

Character set names are compared without regard to letter case; the name is kept as written. The keyword BINARY at such a position is the name binary. Source: https://dev.mysql.com/doc/refman/8.4/en/charset-charsets.html.

Holding a character set name and the defaultdoctest
$named = new \SqlSemantics\Platform\MySql\Statement\Name\CharsetName(new \SqlSemantics\Platform\MySql\Model\Statement\Identifier\Name('utf8mb4'));
    [$named->name?->value, (new \SqlSemantics\Platform\MySql\Statement\Name\CharsetName(null))->name] // => ['utf8mb4', null]

Properties§

public Name|null $name

Methods§

public function __construct(public Name|null $name)

Parameters

$nameName|nullThe character set name, or null for the keyword DEFAULT
public function render(Output $out): void

Writes the name or the keyword DEFAULT.

Parameters

$outOutput
Test cases 2
Calls 3

Test cases 6§

Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.

Dedicated tests 2
Other tests reaching this symbol 4

Relations§

Instantiated in 3
Type declarations 11