classSimpleExprWithSimpleIdentJsonSeparatorSymTextStringLiteral_79d5e28c
final class SimpleExprWithSimpleIdentJsonSeparatorSymTextStringLiteral_79d5e28c
implements BitExprForm, BoolPriForm, ExprForm, ExprListForm, ExprOrDefaultForm, GeneratedColumnFuncForm, GroupListForm, GroupingExprForm, InstallSetRvalueForm, OptExprForm, OptExprListForm, OptSpCparamsForm, OptValuesForm, OrderIdentForm, PartFuncExprForm, PartFuncMaxForm, PartValueExprItemForm, PartValueItemForm, PartValueItemListForm, PartValueListForm, PartValuesInForm, PredicateForm, SetExprOrDefaultForm, SimpleExprForm, SpCparamsForm, ValuesForm
uses Assertion
Public API: explicitly declared with
@visibility public.The simple_expr SQL value; generated by bin/build-models.php.
$write = static fn (\SqlSemantics\Statement\Model\MySql\Value\SimpleExprWithSimpleIdentJsonSeparatorSymTextStringLiteral_79d5e28c $value): string => \SqlSemantics\Statement\Writer::render($value);
$write instanceof \Closure // => trueProperties§
public SimpleIdentForm $simpleIdentpublic string $jsonSeparatorSympublic TextStringLiteralForm $textStringLiteralpublic Comments $comments = new \SqlSemantics\Statement\Comments()Methods§
public function __construct(
public SimpleIdentForm $simpleIdent,
public string $jsonSeparatorSym,
public TextStringLiteralForm $textStringLiteral,
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
$simpleIdent | SimpleIdentForm | |
$jsonSeparatorSym | string | |
$textStringLiteral | TextStringLiteralForm | |
$comments | Comments |
Calls 5
- new Comments line 26
- method-call SimpleExprWithSimpleIdentJsonSeparatorSymTextStringLiteral_79d5e28c::assert() line 28
- static-call Contracts::contains() line 28
- method-call SimpleExprWithSimpleIdentJsonSeparatorSymTextStringLiteral_79d5e28c::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 SimpleIdentForm::write() line 39
- method-call Writer::append() line 41
- method-call TextStringLiteralForm::write() line 43
public function withSimpleIdent(SimpleIdentForm $simpleIdent): selfReturns a copy with a new simpleIdent, preserving every other field.
Parameters
$simpleIdent | SimpleIdentForm |
Returns
selfCalls 1
- new
selfline 51
public function withJsonSeparatorSym(string $jsonSeparatorSym): selfReturns a copy with a new jsonSeparatorSym, preserving every other field.
Parameters
$jsonSeparatorSym | string |
Returns
selfCalls 1
- new
selfline 59
public function withTextStringLiteral(TextStringLiteralForm $textStringLiteral): selfReturns a copy with a new textStringLiteral, preserving every other field.
Parameters
$textStringLiteral | TextStringLiteralForm |
Returns
selfCalls 1
- new
selfline 67