Total Complexity | 2 |
Total Lines | 22 |
Duplicated Lines | 0 % |
Coverage | 100% |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
11 | class PhinxControllerFactory |
||
12 | { |
||
13 | /** |
||
14 | * @param ContainerInterface $container |
||
15 | * @return PhinxController |
||
16 | */ |
||
17 | 1 | public function __invoke(ContainerInterface $container) |
|
18 | { |
||
19 | 1 | return new PhinxController( |
|
20 | 1 | $this->getZfPhinxService($container) |
|
21 | 1 | ); |
|
22 | } |
||
23 | |||
24 | /** |
||
25 | * Gets ZF Phinx Service |
||
26 | * |
||
27 | * @param ContainerInterface $container |
||
28 | * @return ZfPhinxService |
||
29 | */ |
||
30 | 1 | private function getZfPhinxService(ContainerInterface $container) |
|
33 | } |
||
34 | } |
||
35 |