Total Complexity | 4 |
Total Lines | 42 |
Duplicated Lines | 0 % |
Coverage | 20% |
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') |
||
23 | } |
||
24 | |||
25 | /** |
||
26 | * Register a custom migration path. |
||
27 | * |
||
28 | * @param string $path |
||
29 | * @param string $type |
||
30 | */ |
||
31 | public function setPath($path, $type = 'migrations') |
||
32 | { |
||
33 | $this->getConfig()->setPath($path, $type); |
||
34 | } |
||
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') |
|
45 | } |
||
46 | |||
47 | /** |
||
48 | * @param string $type |
||
49 | */ |
||
50 | protected function initPaths($type = 'migrations') |
||
53 | } |
||
54 | } |
||
55 |