classOptOnEmptyOrErrorJsonTableWithOnErrorOnEmpty_ac84fcb7
final class OptOnEmptyOrErrorJsonTableWithOnErrorOnEmpty_ac84fcb7
implements OptOnEmptyOrErrorJsonTableForm
uses Assertion
Public API: explicitly declared with
@visibility public.The opt_on_empty_or_error_json_table SQL value; generated by bin/build-models.php.
$write = static fn (\SqlSemantics\Statement\Model\MySql\Value\OptOnEmptyOrErrorJsonTableWithOnErrorOnEmpty_ac84fcb7 $value): string => \SqlSemantics\Statement\Writer::render($value);
$write instanceof \Closure // => trueProperties§
public OnErrorForm $onErrorpublic OnEmptyForm $onEmptypublic Comments $comments = new \SqlSemantics\Statement\Comments()Methods§
public function __construct(
public OnErrorForm $onError,
public OnEmptyForm $onEmpty,
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
$onError | OnErrorForm | |
$onEmpty | OnEmptyForm | |
$comments | Comments |
Calls 3
- new Comments line 25
- method-call OptOnEmptyOrErrorJsonTableWithOnErrorOnEmpty_ac84fcb7::assert() line 27
- static-call Contracts::contains() line 27
public function write(Writer $writer): voidWrites SQL entirely from this value's fields.
Parameters
$writer | Writer |
Calls 3
- method-call Writer::comments() line 36
- method-call OnErrorForm::write() line 37
- method-call OnEmptyForm::write() line 39
public function withOnError(OnErrorForm $onError): selfReturns a copy with a new onError, preserving every other field.
Parameters
$onError | OnErrorForm |
Returns
selfCalls 1
- new
selfline 47
public function withOnEmpty(OnEmptyForm $onEmpty): selfReturns a copy with a new onEmpty, preserving every other field.
Parameters
$onEmpty | OnEmptyForm |
Returns
selfCalls 1
- new
selfline 55