classExprWithExprOrExpr_f24995de
final class ExprWithExprOrExpr_f24995de
implements ExprForm, ExprListForm, ExprOrDefaultForm, GeneratedColumnFuncForm, GroupListForm, GroupingExprForm, InstallSetRvalueForm, OptExprForm, OptExprListForm, OptSpCparamsForm, OptValuesForm, OrderIdentForm, SetExprOrDefaultForm, SpCparamsForm, ValuesForm
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\MySql\Value\ExprWithExprOrExpr_f24995de $value): string => \SqlSemantics\Statement\Writer::render($value);
$write instanceof \Closure // => trueProperties§
public ExprForm $exprpublic OrForm $orpublic ExprForm $expr2public Comments $comments = new \SqlSemantics\Statement\Comments()Methods§
public function __construct(
public ExprForm $expr,
public OrForm $or,
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.
Calls 5
- new Comments line 26
- method-call ExprWithExprOrExpr_f24995de::assert() line 28
- static-call Contracts::contains() line 28
- method-call ExprWithExprOrExpr_f24995de::assertOperandBindingStrength() line 29
- class-const Contracts::BINDING_POWERS() line 29
public function write(Writer $writer): voidWrites SQL entirely from this value's fields.
Parameters
$writer | Writer |
Calls 3
- method-call Writer::comments() line 40
- method-call ExprForm::write() line 41
- method-call OrForm::write() line 43
public function withExpr(ExprForm $expr): selfpublic function withOr(OrForm $or): selfpublic function withExpr2(ExprForm $expr2): self