| Total Complexity | 6 |
| Total Lines | 49 |
| Duplicated Lines | 0 % |
| Coverage | 80% |
| Changes | 0 | ||
| 1 | <?php |
||
| 11 | trait HasPathsTrait |
||
| 12 | { |
||
| 13 | |||
| 14 | /** |
||
| 15 | * Register a custom migration path. |
||
| 16 | * |
||
| 17 | * @param string $path |
||
| 18 | * @param string $type |
||
| 19 | */ |
||
| 20 | public function path($path, $type = 'migrations') |
||
| 21 | { |
||
| 22 | $this->getConfig()->path($path, $type); |
||
|
|
|||
| 23 | } |
||
| 24 | |||
| 25 | /** |
||
| 26 | * Register a custom migration path. |
||
| 27 | * |
||
| 28 | * @param string $path |
||
| 29 | * @param string $type |
||
| 30 | */ |
||
| 31 | 2 | public function setPath($path, $type = 'migrations') |
|
| 32 | { |
||
| 33 | 2 | $this->getConfig()->setPath($path, $type); |
|
| 34 | 2 | } |
|
| 35 | |||
| 36 | /** |
||
| 37 | * Get all of the custom migration paths. |
||
| 38 | * |
||
| 39 | * @param string $type |
||
| 40 | * @return array |
||
| 41 | */ |
||
| 42 | 1 | public function paths($type = 'migrations') |
|
| 43 | { |
||
| 44 | 1 | return $this->getConfig()->paths($type); |
|
| 45 | } |
||
| 46 | |||
| 47 | /** |
||
| 48 | * @param string $type |
||
| 49 | */ |
||
| 50 | 2 | protected function initPaths($type = 'migrations') |
|
| 60 | 2 | } |
|
| 61 | } |
||
| 62 |