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