@@ -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 | { |
@@ -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 | { |
@@ -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 | { |
@@ -3,11 +3,9 @@ |
||
3 | 3 | namespace T4web\Migrations\Service; |
4 | 4 | |
5 | 5 | use Zend\Db\Adapter\Exception\InvalidQueryException; |
6 | -use Zend\Db\Sql\Ddl; |
|
7 | 6 | use Zend\ServiceManager\ServiceLocatorInterface; |
8 | 7 | use Zend\Console\Adapter\Posix as Console; |
9 | 8 | use T4web\Migrations\Migration\AbstractMigration; |
10 | -use T4web\Migrations\Config; |
|
11 | 9 | use T4web\Migrations\MigrationVersion\Table; |
12 | 10 | |
13 | 11 | /** |