classOptBinaryWithCharsetCharsetNameOptBinMod_c837abed
final class OptBinaryWithCharsetCharsetNameOptBinMod_c837abed
implements OptBinaryForm
uses Assertion
Public API: explicitly declared with
@visibility public.The opt_binary SQL value; generated by bin/build-models.php.
$write = static fn (\SqlSemantics\Statement\Model\MySql\Value\OptBinaryWithCharsetCharsetNameOptBinMod_c837abed $value): string => \SqlSemantics\Statement\Writer::render($value);
$write instanceof \Closure // => trueProperties§
public CharsetForm $charsetpublic CharsetNameForm $charsetNamepublic OptBinModForm $optBinModpublic Comments $comments = new \SqlSemantics\Statement\Comments()Methods§
public function __construct(
public CharsetForm $charset,
public CharsetNameForm $charsetName,
public OptBinModForm $optBinMod,
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
$charset | CharsetForm | |
$charsetName | CharsetNameForm | |
$optBinMod | OptBinModForm | |
$comments | Comments |
Calls 3
- new Comments line 26
- method-call OptBinaryWithCharsetCharsetNameOptBinMod_c837abed::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 4
- method-call Writer::comments() line 38
- method-call CharsetForm::write() line 39
- method-call CharsetNameForm::write() line 41
- method-call OptBinModForm::write() line 43
public function withCharset(CharsetForm $charset): selfReturns a copy with a new charset, preserving every other field.
Parameters
$charset | CharsetForm |
Returns
selfCalls 1
- new
selfline 51
public function withCharsetName(CharsetNameForm $charsetName): selfReturns a copy with a new charsetName, preserving every other field.
Parameters
$charsetName | CharsetNameForm |
Returns
selfCalls 1
- new
selfline 59
public function withOptBinMod(OptBinModForm $optBinMod): selfReturns a copy with a new optBinMod, preserving every other field.
Parameters
$optBinMod | OptBinModForm |
Returns
selfCalls 1
- new
selfline 67