@@ -15,7 +15,7 @@ |
||
15 | 15 | * Create service |
16 | 16 | * |
17 | 17 | * @param ServiceLocatorInterface $serviceLocator |
18 | - * @return mixed |
|
18 | + * @return TableGateway |
|
19 | 19 | */ |
20 | 20 | public function createService(ServiceLocatorInterface $serviceLocator) |
21 | 21 | { |
@@ -14,7 +14,7 @@ |
||
14 | 14 | * Create service |
15 | 15 | * |
16 | 16 | * @param ServiceLocatorInterface $serviceLocator |
17 | - * @return mixed |
|
17 | + * @return Generator |
|
18 | 18 | */ |
19 | 19 | public function createService(ServiceLocatorInterface $serviceLocator) |
20 | 20 | { |
@@ -38,11 +38,11 @@ |
||
38 | 38 | |
39 | 39 | /** |
40 | 40 | * @param \Zend\Db\Adapter\Adapter $adapter |
41 | - * @param $metadata |
|
41 | + * @param \Zend\Db\Metadata\Metadata $metadata |
|
42 | 42 | * @param array $config |
43 | 43 | * @param $migrationVersionTable |
44 | 44 | * @param OutputWriter $writer |
45 | - * @param null $serviceLocator |
|
45 | + * @param \Zend\ServiceManager\ServiceLocatorInterface $serviceLocator |
|
46 | 46 | * @throws \Exception |
47 | 47 | */ |
48 | 48 | public function __construct( |
@@ -6,7 +6,6 @@ |
||
6 | 6 | use Zend\Db\Adapter\Adapter; |
7 | 7 | use Zend\Db\Adapter\AdapterAwareInterface; |
8 | 8 | use Zend\Db\Adapter\Exception\InvalidQueryException; |
9 | -use Zend\Db\Sql\Ddl; |
|
10 | 9 | use Zend\ServiceManager\ServiceLocatorAwareInterface; |
11 | 10 | |
12 | 11 | /** |
@@ -14,7 +14,7 @@ |
||
14 | 14 | * Create service |
15 | 15 | * |
16 | 16 | * @param ServiceLocatorInterface $serviceLocator |
17 | - * @return mixed |
|
17 | + * @return Migration |
|
18 | 18 | */ |
19 | 19 | public function createService(ServiceLocatorInterface $serviceLocator) |
20 | 20 | { |
@@ -24,7 +24,7 @@ |
||
24 | 24 | } |
25 | 25 | |
26 | 26 | /** |
27 | - * @param $line |
|
27 | + * @param string $line |
|
28 | 28 | */ |
29 | 29 | public function writeLine($line) |
30 | 30 | { |
@@ -28,6 +28,9 @@ |
||
28 | 28 | $this->tableGateway->delete(['version' => $version]); |
29 | 29 | } |
30 | 30 | |
31 | + /** |
|
32 | + * @param string $version |
|
33 | + */ |
|
31 | 34 | public function applied($version) |
32 | 35 | { |
33 | 36 | $result = $this->tableGateway->select(['version' => $version]); |
@@ -14,7 +14,7 @@ |
||
14 | 14 | * Create service |
15 | 15 | * |
16 | 16 | * @param ServiceLocatorInterface $serviceLocator |
17 | - * @return mixed |
|
17 | + * @return VersionResolver |
|
18 | 18 | */ |
19 | 19 | public function createService(ServiceLocatorInterface $serviceLocator) |
20 | 20 | { |