@@ -37,6 +37,9 @@ discard block |
||
| 37 | 37 | return $this->driver; |
| 38 | 38 | } |
| 39 | 39 | |
| 40 | + /** |
|
| 41 | + * @param string $message |
|
| 42 | + */ |
|
| 40 | 43 | public function log($message) |
| 41 | 44 | { |
| 42 | 45 | if ($this->config['log']) |
@@ -61,6 +64,9 @@ discard block |
||
| 61 | 64 | return $this->dry_run; |
| 62 | 65 | } |
| 63 | 66 | |
| 67 | + /** |
|
| 68 | + * @param string $method |
|
| 69 | + */ |
|
| 64 | 70 | protected function run_driver($title, $method, $args, $will_return = FALSE) |
| 65 | 71 | { |
| 66 | 72 | if ($title) |
@@ -13,8 +13,7 @@ |
||
| 13 | 13 | |
| 14 | 14 | /** |
| 15 | 15 | * Get the driver of a srtain type |
| 16 | - * @param type $type |
|
| 17 | - * @return type |
|
| 16 | + * @return null|Migration_Driver |
|
| 18 | 17 | */ |
| 19 | 18 | static public function factory($database = 'default') |
| 20 | 19 | { |
@@ -162,6 +162,10 @@ discard block |
||
| 162 | 162 | return array_diff($this->get_migrations(), $this->get_executed_migrations()); |
| 163 | 163 | } |
| 164 | 164 | |
| 165 | + /** |
|
| 166 | + * @param string $direction |
|
| 167 | + * @param boolean $dry_run |
|
| 168 | + */ |
|
| 165 | 169 | protected function execute($version, $direction, $dry_run) |
| 166 | 170 | { |
| 167 | 171 | $migration = $this->load_migration($version)->dry_run($dry_run); |
@@ -212,6 +216,9 @@ discard block |
||
| 212 | 216 | } |
| 213 | 217 | } |
| 214 | 218 | |
| 219 | + /** |
|
| 220 | + * @param string $message |
|
| 221 | + */ |
|
| 215 | 222 | public function log($message) |
| 216 | 223 | { |
| 217 | 224 | if ($this->config['log']) |