classReplaceWithReplaceReplaceLockOptionInsert2InsertFieldSpec_d77d1c9e
final class ReplaceWithReplaceReplaceLockOptionInsert2InsertFieldSpec_d77d1c9e
implements EvSqlStmtForm, EvSqlStmtInnerForm, ExplanableCommandForm, ReplaceForm, SpProcStmtForm, SpProcStmtStatementForm, StatementForm, StoredRoutineBodyForm, VerbClauseForm
uses Assertion
Public API: explicitly declared with
@visibility public.The replace SQL value; generated by bin/build-models.php.
$write = static fn (\SqlSemantics\Statement\Model\MySql\Value\ReplaceWithReplaceReplaceLockOptionInsert2InsertFieldSpec_d77d1c9e $value): string => \SqlSemantics\Statement\Writer::render($value);
$write instanceof \Closure // => trueProperties§
public ReplaceLockOptionForm $replaceLockOptionpublic Insert2Form $insert2public InsertFieldSpecForm $insertFieldSpecpublic Comments $comments = new \SqlSemantics\Statement\Comments()Methods§
public function __construct(
public ReplaceLockOptionForm $replaceLockOption,
public Insert2Form $insert2,
public InsertFieldSpecForm $insertFieldSpec,
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
$replaceLockOption | ReplaceLockOptionForm | |
$insert2 | Insert2Form | |
$insertFieldSpec | InsertFieldSpecForm | |
$comments | Comments |
Calls 3
public function write(Writer $writer): voidWrites SQL entirely from this value's fields.
Parameters
$writer | Writer |
Calls 5
- method-call Writer::comments() line 38
- method-call Writer::append() line 39
- method-call ReplaceLockOptionForm::write() line 41
- method-call Insert2Form::write() line 43
- method-call InsertFieldSpecForm::write() line 45
public function withReplaceLockOption(ReplaceLockOptionForm $replaceLockOption): selfReturns a copy with a new replaceLockOption, preserving every other field.
Parameters
$replaceLockOption | ReplaceLockOptionForm |
Returns
selfCalls 1
- new
selfline 53
public function withInsert2(Insert2Form $insert2): selfReturns a copy with a new insert2, preserving every other field.
Parameters
$insert2 | Insert2Form |
Returns
selfCalls 1
- new
selfline 61
public function withInsertFieldSpec(InsertFieldSpecForm $insertFieldSpec): selfReturns a copy with a new insertFieldSpec, preserving every other field.
Parameters
$insertFieldSpec | InsertFieldSpecForm |
Returns
selfCalls 1
- new
selfline 69