Total Complexity | 6 |
Total Lines | 56 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
9 | abstract class MigrationPayload |
||
10 | { |
||
11 | |||
12 | /** |
||
13 | * @var string |
||
14 | */ |
||
15 | protected $configurationPath; |
||
16 | |||
17 | /** |
||
18 | * MigrationPayload constructor. |
||
19 | * |
||
20 | * @param string $configurationPath |
||
21 | */ |
||
22 | public function __construct($configurationPath) |
||
23 | { |
||
24 | $this->configurationPath = $configurationPath; |
||
25 | } |
||
26 | |||
27 | /** |
||
28 | * @return string |
||
29 | */ |
||
30 | public function getConfigurationPath() |
||
31 | { |
||
32 | return $this->configurationPath; |
||
33 | } |
||
34 | |||
35 | /** |
||
36 | * @return array |
||
37 | */ |
||
38 | public function getConfiguration() |
||
39 | { |
||
40 | return include $this->configurationPath; |
||
41 | } |
||
42 | |||
43 | /** |
||
44 | * @return string |
||
45 | */ |
||
46 | protected function getConfigurationBasePath() |
||
49 | } |
||
50 | |||
51 | /** |
||
52 | * @return string |
||
53 | */ |
||
54 | public function getIndexName() |
||
57 | } |
||
58 | |||
59 | /** |
||
60 | * @return string |
||
61 | */ |
||
62 | public function getIndexVersionsPath() |
||
65 | } |
||
66 | } |
||
67 |