classSelectNoParensWithWithClauseSelectClauseSortClause_5381d5ff
final class SelectNoParensWithWithClauseSelectClauseSortClause_5381d5ff
implements ExplainableStmtForm, PreparableStmtForm, RuleActionListForm, RuleActionMultiForm, RuleActionStmtForm, RuleActionStmtOrEmptyForm, SelectStmtForm, InsertRestForm, ParseToplevelForm, RoutineBodyStmtForm, SelectNoParensForm, StmtForm, StmtmultiForm, ToplevelStmtForm, Command
uses Assertion
Public API: explicitly declared with
@visibility public.The select_no_parens SQL value; generated by bin/build-models.php.
$write = static fn (\SqlSemantics\Statement\Model\PostgreSql\Value\SelectNoParensWithWithClauseSelectClauseSortClause_5381d5ff $value): string => \SqlSemantics\Statement\Writer::render($value);
$write instanceof \Closure // => trueProperties§
public WithClauseForm $withpublic SelectClauseForm $selectClausepublic SortClauseForm $orderBypublic Comments $comments = new \SqlSemantics\Statement\Comments()Methods§
public function __construct(
public WithClauseForm $with,
public SelectClauseForm $selectClause,
public SortClauseForm $orderBy,
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
$with | WithClauseForm | |
$selectClause | SelectClauseForm | |
$orderBy | SortClauseForm | |
$comments | Comments |
Calls 3
- new Comments line 26
- method-call SelectNoParensWithWithClauseSelectClauseSortClause_5381d5ff::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 WithClauseForm::write() line 39
- method-call SelectClauseForm::write() line 41
- method-call SortClauseForm::write() line 43
public function withWith(WithClauseForm $with): selfReturns a copy with a new with, preserving every other field.
Parameters
$with | WithClauseForm |
Returns
selfCalls 1
- new
selfline 51
public function withSelectClause(SelectClauseForm $selectClause): selfReturns a copy with a new selectClause, preserving every other field.
Parameters
$selectClause | SelectClauseForm |
Returns
selfCalls 1
- new
selfline 59
public function withOrderBy(SortClauseForm $orderBy): selfReturns a copy with a new orderBy, preserving every other field.
Parameters
$orderBy | SortClauseForm |
Returns
selfCalls 1
- new
selfline 67