classVariableAuxWithIdentOrTextSetVarExpr_9dc71558
final class VariableAuxWithIdentOrTextSetVarExpr_9dc71558
implements VariableAuxForm
uses Assertion
Public API: explicitly declared with
@visibility public.The variable_aux SQL value; generated by bin/build-models.php.
$write = static fn (\SqlSemantics\Statement\Model\MySql\Value\VariableAuxWithIdentOrTextSetVarExpr_9dc71558 $value): string => \SqlSemantics\Statement\Writer::render($value);
$write instanceof \Closure // => trueProperties§
public IdentOrTextForm $identOrTextpublic string $setVarpublic ExprForm $exprpublic Comments $comments = new \SqlSemantics\Statement\Comments()Methods§
public function __construct(
public IdentOrTextForm $identOrText,
public string $setVar,
public ExprForm $expr,
public Comments $comments = new \SqlSemantics\Statement\Comments(),
)Supplies the SQL values of this form; comments are kept by the position of the symbol each precedes.
Parameters
$identOrText | IdentOrTextForm | |
$setVar | string | |
$expr | ExprForm | |
$comments | Comments |
Calls 5
- new Comments line 26
- method-call VariableAuxWithIdentOrTextSetVarExpr_9dc71558::assert() line 28
- static-call Contracts::contains() line 28
- method-call VariableAuxWithIdentOrTextSetVarExpr_9dc71558::assertMatchesPattern() line 29
- class-const Contracts::SPELLINGS() line 29
public function write(Writer $writer): voidWrites SQL entirely from this value's fields.
Parameters
$writer | Writer |
Calls 4
- method-call Writer::comments() line 38
- method-call IdentOrTextForm::write() line 39
- method-call Writer::append() line 41
- method-call ExprForm::write() line 43
public function withIdentOrText(IdentOrTextForm $identOrText): selfReturns a copy with a new identOrText, preserving every other field.
Parameters
$identOrText | IdentOrTextForm |
Returns
selfCalls 1
- new
selfline 51
public function withSetVar(string $setVar): selfReturns a copy with a new setVar, preserving every other field.
Parameters
$setVar | string |
Returns
selfCalls 1
- new
selfline 59
public function withExpr(ExprForm $expr): self