classDropWithDropViewSymIfExistsTableListOptRestrict_6a85ac66
final class DropWithDropViewSymIfExistsTableListOptRestrict_6a85ac66
implements DropForm, EvSqlStmtForm, EvSqlStmtInnerForm, SpProcStmtForm, SpProcStmtStatementForm, StatementForm, StoredRoutineBodyForm, VerbClauseForm
uses Assertion
Public API: explicitly declared with
@visibility public.The drop SQL value; generated by bin/build-models.php.
$write = static fn (\SqlSemantics\Statement\Model\MySql\Value\DropWithDropViewSymIfExistsTableListOptRestrict_6a85ac66 $value): string => \SqlSemantics\Statement\Writer::render($value);
$write instanceof \Closure // => trueProperties§
public IfExistsForm $ifExistspublic TableListForm $tableListpublic OptRestrictForm $optRestrictpublic Comments $comments = new \SqlSemantics\Statement\Comments()Methods§
public function __construct(
public IfExistsForm $ifExists,
public TableListForm $tableList,
public OptRestrictForm $optRestrict,
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 | |
$tableList | TableListForm | |
$optRestrict | OptRestrictForm | |
$comments | Comments |
Calls 3
- new Comments line 26
- method-call DropWithDropViewSymIfExistsTableListOptRestrict_6a85ac66::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 5
- method-call Writer::comments() line 38
- method-call Writer::append() line 39
- method-call IfExistsForm::write() line 43
- method-call TableListForm::write() line 45
- method-call OptRestrictForm::write() line 47
public function withIfExists(IfExistsForm $ifExists): selfReturns a copy with a new ifExists, preserving every other field.
Parameters
$ifExists | IfExistsForm |
Returns
selfCalls 1
- new
selfline 55
public function withTableList(TableListForm $tableList): selfReturns a copy with a new tableList, preserving every other field.
Parameters
$tableList | TableListForm |
Returns
selfCalls 1
- new
selfline 63
public function withOptRestrict(OptRestrictForm $optRestrict): selfReturns a copy with a new optRestrict, preserving every other field.
Parameters
$optRestrict | OptRestrictForm |
Returns
selfCalls 1
- new
selfline 71