@@ -39,7 +39,7 @@ |
||
39 | 39 | } |
40 | 40 | |
41 | 41 | /** |
42 | - * @return Schema |
|
42 | + * @return \ProxyManager\Proxy\VirtualProxyInterface |
|
43 | 43 | */ |
44 | 44 | public function createFromSchema() |
45 | 45 | { |
@@ -121,7 +121,7 @@ |
||
121 | 121 | * This method ensure that we stay compatible with symfony console 2.3 by using the deprecated dialog helper |
122 | 122 | * but use the ConfirmationQuestion when available. |
123 | 123 | * |
124 | - * @param $question |
|
124 | + * @param string $question |
|
125 | 125 | * @param InputInterface $input |
126 | 126 | * @param OutputInterface $output |
127 | 127 | * @return mixed |
@@ -177,7 +177,7 @@ |
||
177 | 177 | * @param string $versionAlias |
178 | 178 | * @param OutputInterface $output |
179 | 179 | * @param Configuration $configuration |
180 | - * @return bool|string |
|
180 | + * @return false|string |
|
181 | 181 | */ |
182 | 182 | private function getVersionNameFromAlias($versionAlias, OutputInterface $output, Configuration $configuration) |
183 | 183 | { |
@@ -103,6 +103,10 @@ discard block |
||
103 | 103 | /** @var SchemaDiffProviderInterface */ |
104 | 104 | private $schemaProvider; |
105 | 105 | |
106 | + /** |
|
107 | + * @param string $version |
|
108 | + * @param string $class |
|
109 | + */ |
|
106 | 110 | public function __construct(Configuration $configuration, $version, $class, SchemaDiffProviderInterface $schemaProvider=null) |
107 | 111 | { |
108 | 112 | $this->configuration = $configuration; |
@@ -157,6 +161,9 @@ discard block |
||
157 | 161 | $this->markVersion('up'); |
158 | 162 | } |
159 | 163 | |
164 | + /** |
|
165 | + * @param string $direction |
|
166 | + */ |
|
160 | 167 | private function markVersion($direction) |
161 | 168 | { |
162 | 169 | $action = $direction === 'up' ? 'insert' : 'delete'; |
@@ -379,6 +386,9 @@ discard block |
||
379 | 386 | } |
380 | 387 | } |
381 | 388 | |
389 | + /** |
|
390 | + * @param double $queryStart |
|
391 | + */ |
|
382 | 392 | private function outputQueryTime($queryStart, $timeAllQueries = false) |
383 | 393 | { |
384 | 394 | if ($timeAllQueries !== false) { |
@@ -392,7 +402,7 @@ discard block |
||
392 | 402 | /** |
393 | 403 | * Returns the time this migration version took to execute |
394 | 404 | * |
395 | - * @return integer $time The time this migration version took to execute |
|
405 | + * @return double $time The time this migration version took to execute |
|
396 | 406 | */ |
397 | 407 | public function getTime() |
398 | 408 | { |
@@ -479,6 +489,10 @@ discard block |
||
479 | 489 | return sprintf('with parameters (%s)', implode(', ', $out)); |
480 | 490 | } |
481 | 491 | |
492 | + /** |
|
493 | + * @param string $direction |
|
494 | + * @param boolean $dryRun |
|
495 | + */ |
|
482 | 496 | private function dispatchEvent($eventName, $direction, $dryRun) |
483 | 497 | { |
484 | 498 | $this->configuration->dispatchEvent($eventName, new MigrationsVersionEventArgs( |