classRollbackWithRollbackSymOptWorkToSymOptSavepointIdent_9126be6a
final class RollbackWithRollbackSymOptWorkToSymOptSavepointIdent_9126be6a
implements EvSqlStmtForm, EvSqlStmtInnerForm, RollbackForm, SimpleStatementForm, SimpleStatementOrBeginForm, SpProcStmtForm, SpProcStmtStatementForm, StatementForm, StoredRoutineBodyForm, VerbClauseForm, Command
uses Assertion
Public API: explicitly declared with
@visibility public.The rollback SQL value; generated by bin/build-models.php.
$write = static fn (\SqlSemantics\Statement\Model\MySql\Value\RollbackWithRollbackSymOptWorkToSymOptSavepointIdent_9126be6a $value): string => \SqlSemantics\Statement\Writer::render($value);
$write instanceof \Closure // => trueProperties§
public OptWorkForm $optWorkpublic OptSavepointForm $optSavepointpublic IdentForm $identpublic Comments $comments = new \SqlSemantics\Statement\Comments()Methods§
public function __construct(
public OptWorkForm $optWork,
public OptSavepointForm $optSavepoint,
public IdentForm $ident,
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 | |
$optSavepoint | OptSavepointForm | |
$ident | IdentForm | |
$comments | Comments |
Calls 3
- new Comments line 26
- method-call RollbackWithRollbackSymOptWorkToSymOptSavepointIdent_9126be6a::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 OptSavepointForm::write() line 45
- method-call IdentForm::write() line 47
public function withOptWork(OptWorkForm $optWork): selfReturns a copy with a new optWork, preserving every other field.
Parameters
$optWork | OptWorkForm |
Returns
selfCalls 1
- new
selfline 55
public function withOptSavepoint(OptSavepointForm $optSavepoint): selfReturns a copy with a new optSavepoint, preserving every other field.
Parameters
$optSavepoint | OptSavepointForm |
Returns
selfCalls 1
- new
selfline 63
public function withIdent(IdentForm $ident): self