classSetlistWithNmEqExpr_6216c267
final class SetlistWithNmEqExpr_6216c267
implements SetlistForm
uses Assertion
Public API: explicitly declared with
@visibility public.The setlist SQL value; generated by bin/build-models.php.
$write = static fn (\SqlSemantics\Statement\Model\Sqlite\Value\SetlistWithNmEqExpr_6216c267 $value): string => \SqlSemantics\Statement\Writer::render($value);
$write instanceof \Closure // => trueProperties§
public NmForm $nmpublic string $eqpublic ExprForm $exprpublic Comments $comments = new \SqlSemantics\Statement\Comments()Methods§
public function __construct(
public NmForm $nm,
public string $eq,
public ExprForm $expr,
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 26
- method-call SetlistWithNmEqExpr_6216c267::assert() line 28
- static-call Contracts::contains() line 28
- method-call SetlistWithNmEqExpr_6216c267::assertMatchesPattern() line 29
- class-const Contracts::SPELLINGS() line 29
public function write(Writer $writer): voidWrites SQL entirely from this value's fields.
Parameters
$writer | Writer |
Calls 4
- method-call Writer::comments() line 38
- method-call NmForm::write() line 39
- method-call Writer::append() line 41
- method-call ExprForm::write() line 43
public function withNm(NmForm $nm): selfpublic function withEq(string $eq): selfReturns a copy with a new eq, preserving every other field.
Parameters
$eq | string |
Returns
selfCalls 1
- new
selfline 59
public function withExpr(ExprForm $expr): self