classDropWithDropOptTemporaryTableOrTablesIfExistsTableListOptRestrict_b4ee2bcf
final class DropWithDropOptTemporaryTableOrTablesIfExistsTableListOptRestrict_b4ee2bcf
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\DropWithDropOptTemporaryTableOrTablesIfExistsTableListOptRestrict_b4ee2bcf $value): string => \SqlSemantics\Statement\Writer::render($value);
$write instanceof \Closure // => trueProperties§
public OptTemporaryForm $optTemporarypublic TableOrTablesForm $tableOrTablespublic IfExistsForm $ifExistspublic TableListForm $tableListpublic OptRestrictForm $optRestrictpublic Comments $comments = new \SqlSemantics\Statement\Comments()Methods§
public function __construct(
public OptTemporaryForm $optTemporary,
public TableOrTablesForm $tableOrTables,
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
$optTemporary | OptTemporaryForm | |
$tableOrTables | TableOrTablesForm | |
$ifExists | IfExistsForm | |
$tableList | TableListForm | |
$optRestrict | OptRestrictForm | |
$comments | Comments |
Calls 3
public function write(Writer $writer): voidWrites SQL entirely from this value's fields.
Parameters
$writer | Writer |
Calls 7
- method-call Writer::comments() line 42
- method-call Writer::append() line 43
- method-call OptTemporaryForm::write() line 45
- method-call TableOrTablesForm::write() line 47
- method-call IfExistsForm::write() line 49
- method-call TableListForm::write() line 51
- method-call OptRestrictForm::write() line 53
public function withOptTemporary(OptTemporaryForm $optTemporary): selfReturns a copy with a new optTemporary, preserving every other field.
Parameters
$optTemporary | OptTemporaryForm |
Returns
selfCalls 1
- new
selfline 61
public function withTableOrTables(TableOrTablesForm $tableOrTables): selfReturns a copy with a new tableOrTables, preserving every other field.
Parameters
$tableOrTables | TableOrTablesForm |
Returns
selfCalls 1
- new
selfline 69
public function withIfExists(IfExistsForm $ifExists): selfReturns a copy with a new ifExists, preserving every other field.
Parameters
$ifExists | IfExistsForm |
Returns
selfCalls 1
- new
selfline 77
public function withTableList(TableListForm $tableList): selfReturns a copy with a new tableList, preserving every other field.
Parameters
$tableList | TableListForm |
Returns
selfCalls 1
- new
selfline 85
public function withOptRestrict(OptRestrictForm $optRestrict): selfReturns a copy with a new optRestrict, preserving every other field.
Parameters
$optRestrict | OptRestrictForm |
Returns
selfCalls 1
- new
selfline 93