classCommitWithCommitSymOptWorkOptChainOptRelease_b895fd3e
final class CommitWithCommitSymOptWorkOptChainOptRelease_b895fd3e
implements CommitForm, EvSqlStmtForm, EvSqlStmtInnerForm, SimpleStatementForm, SimpleStatementOrBeginForm, SpProcStmtForm, SpProcStmtStatementForm, StatementForm, StoredRoutineBodyForm, VerbClauseForm, Command
uses Assertion
Public API: explicitly declared with
@visibility public.The commit SQL value; generated by bin/build-models.php.
$write = static fn (\SqlSemantics\Statement\Model\MySql\Value\CommitWithCommitSymOptWorkOptChainOptRelease_b895fd3e $value): string => \SqlSemantics\Statement\Writer::render($value);
$write instanceof \Closure // => trueProperties§
public OptWorkForm $optWorkpublic OptChainForm $optChainpublic OptReleaseForm $optReleasepublic Comments $comments = new \SqlSemantics\Statement\Comments()Methods§
public function __construct(
public OptWorkForm $optWork,
public OptChainForm $optChain,
public OptReleaseForm $optRelease,
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
$optWork | OptWorkForm | |
$optChain | OptChainForm | |
$optRelease | OptReleaseForm | |
$comments | Comments |
Calls 3
- new Comments line 26
- method-call CommitWithCommitSymOptWorkOptChainOptRelease_b895fd3e::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 5
- method-call Writer::comments() line 38
- method-call Writer::append() line 39
- method-call OptWorkForm::write() line 41
- method-call OptChainForm::write() line 43
- method-call OptReleaseForm::write() line 45
public function withOptWork(OptWorkForm $optWork): selfReturns a copy with a new optWork, preserving every other field.
Parameters
$optWork | OptWorkForm |
Returns
selfCalls 1
- new
selfline 53
public function withOptChain(OptChainForm $optChain): selfReturns a copy with a new optChain, preserving every other field.
Parameters
$optChain | OptChainForm |
Returns
selfCalls 1
- new
selfline 61
public function withOptRelease(OptReleaseForm $optRelease): selfReturns a copy with a new optRelease, preserving every other field.
Parameters
$optRelease | OptReleaseForm |
Returns
selfCalls 1
- new
selfline 69