classAExprWithAExprCollateAnyName_8b12aefc
final class AExprWithAExprCollateAnyName_8b12aefc
implements AExprForm, CaseArgForm, ExprListForm, FuncArgExprForm, FuncArgListForm, FuncArgListOptForm, GroupByItemForm, GroupByListForm, OptSliceBoundForm, OptTargetListForm, SelectLimitValueForm, SelectOffsetValueForm, TargetElForm, TargetListForm, TrimListForm, XmlAttributeElForm, XmlAttributeListForm
uses Assertion
Public API: explicitly declared with
@visibility public.The a_expr SQL value; generated by bin/build-models.php.
$write = static fn (\SqlSemantics\Statement\Model\PostgreSql\Value\AExprWithAExprCollateAnyName_8b12aefc $value): string => \SqlSemantics\Statement\Writer::render($value);
$write instanceof \Closure // => trueProperties§
public AExprForm $aExprpublic AnyNameForm $anyNamepublic Comments $comments = new \SqlSemantics\Statement\Comments()Methods§
public function __construct(
public AExprForm $aExpr,
public AnyNameForm $anyName,
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
$aExpr | AExprForm | |
$anyName | AnyNameForm | |
$comments | Comments |
Calls 5
- new Comments line 25
- method-call AExprWithAExprCollateAnyName_8b12aefc::assert() line 27
- static-call Contracts::contains() line 27
- method-call AExprWithAExprCollateAnyName_8b12aefc::assertOperandBindingStrength() line 28
- class-const Contracts::BINDING_POWERS() 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 37
- method-call AExprForm::write() line 38
- method-call Writer::append() line 40
- method-call AnyNameForm::write() line 42
public function withAExpr(AExprForm $aExpr): selfpublic function withAnyName(AnyNameForm $anyName): selfReturns a copy with a new anyName, preserving every other field.
Parameters
$anyName | AnyNameForm |
Returns
selfCalls 1
- new
selfline 58