classCreate3WithOptDuplicateOptAsCreateSelectUnionOpt_5e75a149
final class Create3WithOptDuplicateOptAsCreateSelectUnionOpt_5e75a149
implements Create3Form
uses Assertion
Public API: explicitly declared with
@visibility public.The create3 SQL value; generated by bin/build-models.php.
$write = static fn (\SqlSemantics\Statement\Model\MySql\Value\Create3WithOptDuplicateOptAsCreateSelectUnionOpt_5e75a149 $value): string => \SqlSemantics\Statement\Writer::render($value);
$write instanceof \Closure // => trueProperties§
public OptDuplicateForm $optDuplicatepublic OptAsForm $optAspublic CreateSelectForm $createSelectpublic UnionOptForm $unionOptpublic Comments $comments = new \SqlSemantics\Statement\Comments()Methods§
public function __construct(
public OptDuplicateForm $optDuplicate,
public OptAsForm $optAs,
public CreateSelectForm $createSelect,
public UnionOptForm $unionOpt,
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
$optDuplicate | OptDuplicateForm | |
$optAs | OptAsForm | |
$createSelect | CreateSelectForm | |
$unionOpt | UnionOptForm | |
$comments | Comments |
Calls 3
- new Comments line 27
- method-call Create3WithOptDuplicateOptAsCreateSelectUnionOpt_5e75a149::assert() line 29
- static-call Contracts::contains() line 29
public function write(Writer $writer): voidWrites SQL entirely from this value's fields.
Parameters
$writer | Writer |
Calls 6
- method-call Writer::comments() line 40
- method-call OptDuplicateForm::write() line 41
- method-call OptAsForm::write() line 43
- method-call Writer::append() line 45
- method-call CreateSelectForm::write() line 47
- method-call UnionOptForm::write() line 51
public function withOptDuplicate(OptDuplicateForm $optDuplicate): selfReturns a copy with a new optDuplicate, preserving every other field.
Parameters
$optDuplicate | OptDuplicateForm |
Returns
selfCalls 1
- new
selfline 59
public function withOptAs(OptAsForm $optAs): selfpublic function withCreateSelect(CreateSelectForm $createSelect): selfReturns a copy with a new createSelect, preserving every other field.
Parameters
$createSelect | CreateSelectForm |
Returns
selfCalls 1
- new
selfline 75
public function withUnionOpt(UnionOptForm $unionOpt): selfReturns a copy with a new unionOpt, preserving every other field.
Parameters
$unionOpt | UnionOptForm |
Returns
selfCalls 1
- new
selfline 83