classSelectInit2WithSelectPart2UnionClause_dd0d3cd3
final class SelectInit2WithSelectPart2UnionClause_dd0d3cd3
implements SelectInit2Form
uses Assertion
Public API: explicitly declared with
@visibility public.The select_init2 SQL value; generated by bin/build-models.php.
$write = static fn (\SqlSemantics\Statement\Model\MySql\Value\SelectInit2WithSelectPart2UnionClause_dd0d3cd3 $value): string => \SqlSemantics\Statement\Writer::render($value);
$write instanceof \Closure // => trueProperties§
public SelectPart2Form $selectPart2public UnionClauseForm $unionClausepublic Comments $comments = new \SqlSemantics\Statement\Comments()Methods§
public function __construct(
public SelectPart2Form $selectPart2,
public UnionClauseForm $unionClause,
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
$selectPart2 | SelectPart2Form | |
$unionClause | UnionClauseForm | |
$comments | Comments |
Calls 3
- new Comments line 25
- method-call SelectInit2WithSelectPart2UnionClause_dd0d3cd3::assert() line 27
- static-call Contracts::contains() line 27
public function write(Writer $writer): voidWrites SQL entirely from this value's fields.
Parameters
$writer | Writer |
Calls 3
- method-call Writer::comments() line 36
- method-call SelectPart2Form::write() line 37
- method-call UnionClauseForm::write() line 39
public function withSelectPart2(SelectPart2Form $selectPart2): selfReturns a copy with a new selectPart2, preserving every other field.
Parameters
$selectPart2 | SelectPart2Form |
Returns
selfCalls 1
- new
selfline 47
public function withUnionClause(UnionClauseForm $unionClause): selfReturns a copy with a new unionClause, preserving every other field.
Parameters
$unionClause | UnionClauseForm |
Returns
selfCalls 1
- new
selfline 55