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

An SQL/XML constructor the server rejects.

Describing a repeated attribute namedoctest
(new \SqlSemantics\Platform\PostgreSql\Statement\Invocation\Problem\XmlProblem(\SqlSemantics\Platform\PostgreSql\Statement\Invocation\Problem\XmlProblemKind::RepeatedAttribute, 'a'))->message() // => 'XML attribute name "a" appears more than once'

Properties§

public string $subject = ''

Methods§

public function __construct(public XmlProblemKind $kind, public string $subject = '')

Parameters

$kindXmlProblemKindThe mistake
$subjectstringThe attribute name or the type name the message names; empty when it names none
public function message(): string

Describes the problem as the server does.

Returns

string
Test cases 1
Calls 1

Test cases 5§

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

Dedicated tests 1
Other tests reaching this symbol 4

Relations§

Instantiated in 4