classExprWithCaseCaseOperandCaseExprlistCaseElseEnd_f3c36399
final class ExprWithCaseCaseOperandCaseExprlistCaseElseEnd_f3c36399
implements CaseOperandForm, ExprForm, ExprlistForm, NexprlistForm
uses Assertion
Public API: explicitly declared with
@visibility public.The expr SQL value; generated by bin/build-models.php.
$write = static fn (\SqlSemantics\Statement\Model\Sqlite\Value\ExprWithCaseCaseOperandCaseExprlistCaseElseEnd_f3c36399 $value): string => \SqlSemantics\Statement\Writer::render($value);
$write instanceof \Closure // => trueProperties§
public CaseOperandForm $caseOperandpublic CaseExprlistForm $caseExprlistpublic CaseElseForm $caseElsepublic Comments $comments = new \SqlSemantics\Statement\Comments()Methods§
public function __construct(
public CaseOperandForm $caseOperand,
public CaseExprlistForm $caseExprlist,
public CaseElseForm $caseElse,
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
$caseOperand | CaseOperandForm | |
$caseExprlist | CaseExprlistForm | |
$caseElse | CaseElseForm | |
$comments | Comments |
Calls 3
- new Comments line 26
- method-call ExprWithCaseCaseOperandCaseExprlistCaseElseEnd_f3c36399::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 5
- method-call Writer::comments() line 38
- method-call Writer::append() line 39
- method-call CaseOperandForm::write() line 41
- method-call CaseExprlistForm::write() line 43
- method-call CaseElseForm::write() line 45
public function withCaseOperand(CaseOperandForm $caseOperand): selfReturns a copy with a new caseOperand, preserving every other field.
Parameters
$caseOperand | CaseOperandForm |
Returns
selfCalls 1
- new
selfline 55
public function withCaseExprlist(CaseExprlistForm $caseExprlist): selfReturns a copy with a new caseExprlist, preserving every other field.
Parameters
$caseExprlist | CaseExprlistForm |
Returns
selfCalls 1
- new
selfline 63
public function withCaseElse(CaseElseForm $caseElse): selfReturns a copy with a new caseElse, preserving every other field.
Parameters
$caseElse | CaseElseForm |
Returns
selfCalls 1
- new
selfline 71