final class UtilityProblem
    implements Diagnostic
    uses Snapshot
Public API: explicitly declared with @visibility public.

A utility command that PostgreSQL rejects because it breaks a rule of the command.

Reading the problem of an unknown EXPLAIN optiondoctest
(new \SqlSemantics\Platform\PostgreSql\Semantics())->analyze('EXPLAIN (fast) SELECT 1') // throws \SqlSemantics\Platform\PostgreSql\Model\Diagnostic\SemanticException: unrecognized EXPLAIN option "fast"

Properties§

public list<string> $subjects

Methods§

public function __construct(
    public UtilityProblemKind $kind,
    array<array-key, mixed> $subjects = [],
)

Parameters

$kindUtilityProblemKindThe broken rule
$subjectsarray<array-key, mixed>The texts the message names, one for each `%s` of the rule
Calls 5
public function message(): string

Describes the broken rule in the words of PostgreSQL.

Returns

string
Test cases 2
Calls 1

Test cases 2§

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

Dedicated tests 2

Relations§

Instantiated in 19