| @@ 249-260 (lines=12) @@ | ||
| 246 | * | |
| 247 | * @throws \UnexpectedValueException | |
| 248 | */ | |
| 249 | public function getMigrationPaths() | |
| 250 |     { | |
| 251 |         if (!isset($this->values['paths']['migrations'])) { | |
| 252 |             throw new UnexpectedValueException('Migrations path missing from config file'); | |
| 253 | } | |
| 254 | ||
| 255 |         if (is_string($this->values['paths']['migrations'])) { | |
| 256 | $this->values['paths']['migrations'] = [$this->values['paths']['migrations']]; | |
| 257 | } | |
| 258 | ||
| 259 | return $this->values['paths']['migrations']; | |
| 260 | } | |
| 261 | ||
| 262 | /** | |
| 263 | * Gets the base class name for migrations. | |
| @@ 281-292 (lines=12) @@ | ||
| 278 | * | |
| 279 | * @throws \UnexpectedValueException | |
| 280 | */ | |
| 281 | public function getSeedPaths() | |
| 282 |     { | |
| 283 |         if (!isset($this->values['paths']['seeds'])) { | |
| 284 |             throw new UnexpectedValueException('Seeds path missing from config file'); | |
| 285 | } | |
| 286 | ||
| 287 |         if (is_string($this->values['paths']['seeds'])) { | |
| 288 | $this->values['paths']['seeds'] = [$this->values['paths']['seeds']]; | |
| 289 | } | |
| 290 | ||
| 291 | return $this->values['paths']['seeds']; | |
| 292 | } | |
| 293 | ||
| 294 | /** | |
| 295 | * Get the template file name. | |