classCmdWithCommitEndTransOpt_ccca6149
final class CmdWithCommitEndTransOpt_ccca6149
implements CmdForm, CmdxForm, Command
uses Assertion
Public API: explicitly declared with
@visibility public.The cmd SQL value; generated by bin/build-models.php.
$write = static fn (\SqlSemantics\Statement\Model\Sqlite\Value\CmdWithCommitEndTransOpt_ccca6149 $value): string => \SqlSemantics\Statement\Writer::render($value);
$write instanceof \Closure // => trueProperties§
public string $commitEndpublic TransOptForm $transOptpublic Comments $comments = new \SqlSemantics\Statement\Comments()Methods§
public function __construct(
public string $commitEnd,
public TransOptForm $transOpt,
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
$commitEnd | string | |
$transOpt | TransOptForm | |
$comments | Comments |
Calls 5
- new Comments line 25
- method-call CmdWithCommitEndTransOpt_ccca6149::assertMatchesPattern() line 27
- class-const Contracts::SPELLINGS() line 27
- method-call CmdWithCommitEndTransOpt_ccca6149::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 |
Test cases 1
Calls 3
- method-call Writer::comments() line 36
- method-call Writer::append() line 37
- method-call TransOptForm::write() line 39
public function withCommitEnd(string $commitEnd): selfReturns a copy with a new commitEnd, preserving every other field.
Parameters
$commitEnd | string |
Returns
selfCalls 1
- new
selfline 47
public function withTransOpt(TransOptForm $transOpt): selfReturns a copy with a new transOpt, preserving every other field.
Parameters
$transOpt | TransOptForm |
Returns
selfCalls 1
- new
selfline 55
Test cases 8§
Test cases that cover or call this symbol, from the coverage report and from the analyzed test sources.
Other tests reaching this symbol 8
CommandTest::testWriteWithCompleteCommandcallsElementTest::testWriteWithConcreteCommandcallsImmutableGraphTest::testContainsOnlyImmutableValuesAcceptsCommentsAndRejectsOtherObjectscallsImmutableGraphTest::testContainsOnlyImmutableValuesAcceptsGeneratedDescendantscallsStatementTest::testToStringUsesIndependentlyConstructedDatacallsStatementTest::testWithCommandConstructsAndUpdatesWithoutLoadingTheSqlParsercallsStatementTest::testWithCommandSharesUnchangedValuesAndPreservesTheOriginalcallsStatementTest::testWithCommentsReplacesTheCommentsAroundTheSameCommandcalls