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

One assignment of the SET clause of SIGNAL or RESIGNAL: a condition information item and its value.

The grammar accepts a literal, a variable or a name as the value. Source: https://dev.mysql.com/doc/refman/8.4/en/signal.html#signal-condition-information-items.

Reading the items of a SIGNALdoctest
$signal = (new \SqlSemantics\Platform\MySql\Semantics())->analyze("SIGNAL SQLSTATE '45000' SET MESSAGE_TEXT = 'no', MYSQL_ERRNO = 1001");
    $signal->statement->items[1]->name // => \SqlSemantics\Platform\MySql\Statement\Routine\Condition\ConditionItemName::MysqlErrno

Properties§

public Scalar $value

Methods§

public function __construct(public ConditionItemName $name, public Scalar $value)

Parameters

$nameConditionItemNameThe item that is set; not RETURNED_SQLSTATE
$valueScalarThe value
Calls 2
public function render(Output $out): void

Writes the item, the equals sign and the value.

Parameters

$outOutput
Test cases 1
Calls 1

Test cases 9§

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

Dedicated tests 3
Other tests reaching this symbol 6

Relations§

Instantiated in 1
Constant reads 2