| @@ 249-255 (lines=7) @@ | ||
| 246 | * |
|
| 247 | * @return void |
|
| 248 | */ |
|
| 249 | public function executeCommands() |
|
| 250 | { |
|
| 251 | $commands = $this->getCommands(); |
|
| 252 | foreach ($commands as $command) { |
|
| 253 | call_user_func_array([$this->getAdapter(), $command['name']], $command['arguments']); |
|
| 254 | } |
|
| 255 | } |
|
| 256 | ||
| 257 | /** |
|
| 258 | * Execute the recorded commands in reverse. |
|
| @@ 262-268 (lines=7) @@ | ||
| 259 | * |
|
| 260 | * @return void |
|
| 261 | */ |
|
| 262 | public function executeInvertedCommands() |
|
| 263 | { |
|
| 264 | $commands = $this->getInvertedCommands(); |
|
| 265 | foreach ($commands as $command) { |
|
| 266 | call_user_func_array([$this->getAdapter(), $command['name']], $command['arguments']); |
|
| 267 | } |
|
| 268 | } |
|
| 269 | ||
| 270 | /** |
|
| 271 | * Returns the reverse of a createTable command. |
|