| 1 | <?php |
||
| 7 | class RenameTableCommand extends Command |
||
| 8 | { |
||
| 9 | private $table; |
||
| 10 | private $newTableName; |
||
| 11 | |||
| 12 | /** |
||
| 13 | * Sets a table. |
||
| 14 | * |
||
| 15 | * @param Table $table The table instance. |
||
| 16 | * |
||
| 17 | * @return RenameTableCommand |
||
| 18 | */ |
||
| 19 | public function setTable(Table $table) |
||
| 25 | |||
| 26 | /** |
||
| 27 | * Sets a table name. |
||
| 28 | * |
||
| 29 | * @param string $newTableName New table name. |
||
| 30 | * |
||
| 31 | * @return RenameTableCommand |
||
| 32 | */ |
||
| 33 | public function setNewName($newTableName) |
||
| 39 | |||
| 40 | /** |
||
| 41 | * {@inheritdoc} |
||
| 42 | */ |
||
| 43 | public function getSql() |
||
| 52 | } |
||
| 53 |