classXmlProblem
final class XmlProblem
implements Diagnostic
uses Snapshot
Public API: explicitly declared with
@visibility public.An SQL/XML constructor the server rejects.
(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 XmlProblemKind $kindpublic string $subject = ''Methods§
public function __construct(public XmlProblemKind $kind, public string $subject = '')Parameters
$kind | XmlProblemKind | The mistake |
$subject | string | The attribute name or the type name the message names; empty when it names none |
public function message(): stringDescribes the problem as the server does.
Returns
stringTest cases 1
Calls 1
- function-call
str_replaceline 34
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
- new SqlSemantics\Platform\PostgreSql\Rules\Invocation\XmlChecks::attributes() packages/sql-semantics-postgres/src/Rules/Invocation/XmlChecks.php:48
- new SqlSemantics\Platform\PostgreSql\Rules\Invocation\XmlChecks::attributes() packages/sql-semantics-postgres/src/Rules/Invocation/XmlChecks.php:52
- new SqlSemantics\Platform\PostgreSql\Rules\Invocation\XmlChecks::elements() packages/sql-semantics-postgres/src/Rules/Invocation/XmlChecks.php:67
- new SqlSemantics\Platform\PostgreSql\Rules\Invocation\XmlChecks::serialized() packages/sql-semantics-postgres/src/Rules/Invocation/XmlChecks.php:83