| Total Complexity | 5 | 
| Total Lines | 43 | 
| Duplicated Lines | 0 % | 
| Coverage | 75% | 
| Changes | 0 | ||
| 1 | <?php | ||
| 9 | final class MigrationConfig extends InjectableConfig | ||
| 10 | { | ||
| 11 | public const CONFIG = 'migration'; | ||
| 12 | |||
| 13 | /** | ||
| 14 | * Migrations directory. | ||
| 15 | */ | ||
| 16 | 344 | public function getDirectory(): string | |
| 19 | } | ||
| 20 | |||
| 21 | /** | ||
| 22 | * Vendor migrations directories. | ||
| 23 | */ | ||
| 24 | 352 | public function getVendorDirectories(): array | |
| 25 |     { | ||
| 26 | 352 | return (array) ($this->config['vendorDirectories'] ?? []); | |
| 27 | } | ||
| 28 | |||
| 29 | /** | ||
| 30 | * Table to store list of executed migrations. | ||
| 31 | */ | ||
| 32 | public function getTable(): string | ||
| 33 | 4 |     { | |
| 34 | return $this->config['table'] ?? 'migrations'; | ||
| 35 | 4 | } | |
| 36 | |||
| 37 | /** | ||
| 38 | * Is it safe to run migration without user confirmation? Attention, this option does not | ||
| 39 | * used in component directly and left for component consumers. | ||
| 40 | */ | ||
| 41 | public function isSafe(): bool | ||
| 42 |     { | ||
| 43 | return $this->config['safe'] ?? false; | ||
| 44 | } | ||
| 45 | |||
| 46 | /** | ||
| 47 | * Namespace for generated migration class | ||
| 48 | */ | ||
| 49 | public function getNamespace(): string | ||
| 52 | } | ||
| 53 | } | ||
| 54 |