classOptIfExistsIdentWithIfExistsPersistedVariableIdent_385dc152
final class OptIfExistsIdentWithIfExistsPersistedVariableIdent_385dc152
implements OptIfExistsIdentForm
uses Assertion
Public API: explicitly declared with
@visibility public.The opt_if_exists_ident SQL value; generated by bin/build-models.php.
$write = static fn (\SqlSemantics\Statement\Model\MySql\Value\OptIfExistsIdentWithIfExistsPersistedVariableIdent_385dc152 $value): string => \SqlSemantics\Statement\Writer::render($value);
$write instanceof \Closure // => trueProperties§
public IfExistsForm $ifExistspublic PersistedVariableIdentForm $persistedVariableIdentpublic Comments $comments = new \SqlSemantics\Statement\Comments()Methods§
public function __construct(
public IfExistsForm $ifExists,
public PersistedVariableIdentForm $persistedVariableIdent,
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
$ifExists | IfExistsForm | |
$persistedVariableIdent | PersistedVariableIdentForm | |
$comments | Comments |
Calls 3
- new Comments line 25
- method-call OptIfExistsIdentWithIfExistsPersistedVariableIdent_385dc152::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 IfExistsForm::write() line 37
- method-call PersistedVariableIdentForm::write() line 39
public function withIfExists(IfExistsForm $ifExists): selfReturns a copy with a new ifExists, preserving every other field.
Parameters
$ifExists | IfExistsForm |
Returns
selfCalls 1
- new
selfline 47
public function withPersistedVariableIdent(PersistedVariableIdentForm $persistedVariableIdent): selfReturns a copy with a new persistedVariableIdent, preserving every other field.
Parameters
$persistedVariableIdent | PersistedVariableIdentForm |
Returns
selfCalls 1
- new
selfline 55