classWhenListWithWhenListWhenSymExprThenSymExpr_96d28342
final class WhenListWithWhenListWhenSymExprThenSymExpr_96d28342
implements WhenListForm
uses Assertion
Public API: explicitly declared with
@visibility public.The when_list SQL value; generated by bin/build-models.php.
$write = static fn (\SqlSemantics\Statement\Model\MySql\Value\WhenListWithWhenListWhenSymExprThenSymExpr_96d28342 $value): string => \SqlSemantics\Statement\Writer::render($value);
$write instanceof \Closure // => trueProperties§
public WhenListForm $whenListpublic ExprForm $exprpublic ExprForm $expr2public Comments $comments = new \SqlSemantics\Statement\Comments()Methods§
public function __construct(
public WhenListForm $whenList,
public ExprForm $expr,
public ExprForm $expr2,
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
$whenList | WhenListForm | |
$expr | ExprForm | |
$expr2 | ExprForm | |
$comments | Comments |
Calls 3
- new Comments line 26
- method-call WhenListWithWhenListWhenSymExprThenSymExpr_96d28342::assert() line 28
- static-call Contracts::contains() line 28
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 WhenListForm::write() line 39
- method-call Writer::append() line 41
- method-call ExprForm::write() line 43
public function withWhenList(WhenListForm $whenList): selfReturns a copy with a new whenList, preserving every other field.
Parameters
$whenList | WhenListForm |
Returns
selfCalls 1
- new
selfline 55
public function withExpr(ExprForm $expr): selfpublic function withExpr2(ExprForm $expr2): self