classCmdWithPragmaNmDbnmEqNmnum_e6b5c848
final class CmdWithPragmaNmDbnmEqNmnum_e6b5c848
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\CmdWithPragmaNmDbnmEqNmnum_e6b5c848 $value): string => \SqlSemantics\Statement\Writer::render($value);
$write instanceof \Closure // => trueProperties§
public NmForm $nmpublic DbnmForm $dbnmpublic string $eqpublic NmnumForm $nmnumpublic Comments $comments = new \SqlSemantics\Statement\Comments()Methods§
public function __construct(
public NmForm $nm,
public DbnmForm $dbnm,
public string $eq,
public NmnumForm $nmnum,
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.
Calls 5
- new Comments line 27
- method-call CmdWithPragmaNmDbnmEqNmnum_e6b5c848::assert() line 29
- static-call Contracts::contains() line 29
- method-call CmdWithPragmaNmDbnmEqNmnum_e6b5c848::assertMatchesPattern() line 31
- class-const Contracts::SPELLINGS() line 31
public function write(Writer $writer): voidWrites SQL entirely from this value's fields.
Parameters
$writer | Writer |
Calls 5
- method-call Writer::comments() line 40
- method-call Writer::append() line 41
- method-call NmForm::write() line 43
- method-call DbnmForm::write() line 45
- method-call NmnumForm::write() line 49
public function withNm(NmForm $nm): selfpublic function withDbnm(DbnmForm $dbnm): selfpublic function withEq(string $eq): selfReturns a copy with a new eq, preserving every other field.
Parameters
$eq | string |
Returns
selfCalls 1
- new
selfline 73
public function withNmnum(NmnumForm $nmnum): self