classWindowFuncCallWithNthValueSymExprSimpleExprOptFromFirstLastOptNullTreatmentWindowingClause_5a83eb1e
final class WindowFuncCallWithNthValueSymExprSimpleExprOptFromFirstLastOptNullTreatmentWindowingClause_5a83eb1e
implements BitExprForm, BoolPriForm, ExprForm, ExprListForm, ExprOrDefaultForm, GeneratedColumnFuncForm, GroupListForm, GroupingExprForm, InstallSetRvalueForm, OptExprForm, OptExprListForm, OptSpCparamsForm, OptValuesForm, OrderIdentForm, PartFuncExprForm, PartFuncMaxForm, PartValueExprItemForm, PartValueItemForm, PartValueItemListForm, PartValueListForm, PartValuesInForm, PredicateForm, SetExprOrDefaultForm, SimpleExprForm, SpCparamsForm, ValuesForm, WindowFuncCallForm
uses Assertion
Public API: explicitly declared with
@visibility public.The window_func_call SQL value; generated by bin/build-models.php.
$write = static fn (\SqlSemantics\Statement\Model\MySql\Value\WindowFuncCallWithNthValueSymExprSimpleExprOptFromFirstLastOptNullTreatmentWindowingClause_5a83eb1e $value): string => \SqlSemantics\Statement\Writer::render($value);
$write instanceof \Closure // => trueProperties§
public ExprForm $exprpublic SimpleExprForm $simpleExprpublic OptFromFirstLastForm $optFromFirstLastpublic OptNullTreatmentForm $optNullTreatmentpublic WindowingClauseForm $windowingClausepublic Comments $comments = new \SqlSemantics\Statement\Comments()Methods§
public function __construct(
public ExprForm $expr,
public SimpleExprForm $simpleExpr,
public OptFromFirstLastForm $optFromFirstLast,
public OptNullTreatmentForm $optNullTreatment,
public WindowingClauseForm $windowingClause,
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
$expr | ExprForm | |
$simpleExpr | SimpleExprForm | |
$optFromFirstLast | OptFromFirstLastForm | |
$optNullTreatment | OptNullTreatmentForm | |
$windowingClause | WindowingClauseForm | |
$comments | Comments |
public function write(Writer $writer): voidWrites SQL entirely from this value's fields.
Parameters
$writer | Writer |
Calls 7
- method-call Writer::comments() line 42
- method-call Writer::append() line 43
- method-call ExprForm::write() line 47
- method-call SimpleExprForm::write() line 51
- method-call OptFromFirstLastForm::write() line 55
- method-call OptNullTreatmentForm::write() line 57
- method-call WindowingClauseForm::write() line 59
public function withExpr(ExprForm $expr): selfpublic function withSimpleExpr(SimpleExprForm $simpleExpr): selfReturns a copy with a new simpleExpr, preserving every other field.
Parameters
$simpleExpr | SimpleExprForm |
Returns
selfCalls 1
- new
selfline 75
public function withOptFromFirstLast(OptFromFirstLastForm $optFromFirstLast): selfReturns a copy with a new optFromFirstLast, preserving every other field.
Parameters
$optFromFirstLast | OptFromFirstLastForm |
Returns
selfCalls 1
- new
selfline 83
public function withOptNullTreatment(OptNullTreatmentForm $optNullTreatment): selfReturns a copy with a new optNullTreatment, preserving every other field.
Parameters
$optNullTreatment | OptNullTreatmentForm |
Returns
selfCalls 1
- new
selfline 91
public function withWindowingClause(WindowingClauseForm $windowingClause): selfReturns a copy with a new windowingClause, preserving every other field.
Parameters
$windowingClause | WindowingClauseForm |
Returns
selfCalls 1
- new
selfline 99