@@ -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 | { |
@@ -42,6 +42,9 @@ |
||
| 42 | 42 | */ |
| 43 | 43 | private $outputWriter; |
| 44 | 44 | |
| 45 | + /** |
|
| 46 | + * @param OutputWriter $outputWriter |
|
| 47 | + */ |
|
| 45 | 48 | public function __construct(string $columnName, string $tableName, ?OutputWriter $outputWriter) |
| 46 | 49 | { |
| 47 | 50 | $this->columnName = $columnName; |
@@ -234,7 +234,7 @@ |
||
| 234 | 234 | * properly, so I had to violate LoD here (so please, let's find a way to solve it on v2). |
| 235 | 235 | */ |
| 236 | 236 | return $this->configuration->getQueryWriter() |
| 237 | - ->write($path, $direction, $sqlQueries); |
|
| 237 | + ->write($path, $direction, $sqlQueries); |
|
| 238 | 238 | } |
| 239 | 239 | |
| 240 | 240 | /** |
@@ -81,6 +81,10 @@ discard block |
||
| 81 | 81 | /** @var SchemaDiffProviderInterface */ |
| 82 | 82 | private $schemaProvider; |
| 83 | 83 | |
| 84 | + /** |
|
| 85 | + * @param string $version |
|
| 86 | + * @param string $class |
|
| 87 | + */ |
|
| 84 | 88 | public function __construct(Configuration $configuration, $version, $class, ?SchemaDiffProviderInterface $schemaProvider = null) |
| 85 | 89 | { |
| 86 | 90 | $this->configuration = $configuration; |
@@ -137,6 +141,9 @@ discard block |
||
| 137 | 141 | $this->markVersion('up'); |
| 138 | 142 | } |
| 139 | 143 | |
| 144 | + /** |
|
| 145 | + * @param string $direction |
|
| 146 | + */ |
|
| 140 | 147 | private function markVersion($direction) |
| 141 | 148 | { |
| 142 | 149 | $action = $direction === 'up' ? 'insert' : 'delete'; |
@@ -157,7 +164,7 @@ discard block |
||
| 157 | 164 | * Add some SQL queries to this versions migration |
| 158 | 165 | * |
| 159 | 166 | * @param string|string[] $sql |
| 160 | - * @param mixed[]|mixed[][] $params |
|
| 167 | + * @param string[] $params |
|
| 161 | 168 | * @param string[]|string[][] $types |
| 162 | 169 | */ |
| 163 | 170 | public function addSql($sql, array $params = [], array $types = []) |
@@ -360,6 +367,9 @@ discard block |
||
| 360 | 367 | } |
| 361 | 368 | } |
| 362 | 369 | |
| 370 | + /** |
|
| 371 | + * @param double $queryStart |
|
| 372 | + */ |
|
| 363 | 373 | private function outputQueryTime($queryStart, $timeAllQueries = false) |
| 364 | 374 | { |
| 365 | 375 | if ($timeAllQueries !== false) { |
@@ -464,6 +474,10 @@ discard block |
||
| 464 | 474 | return sprintf('with parameters (%s)', implode(', ', $out)); |
| 465 | 475 | } |
| 466 | 476 | |
| 477 | + /** |
|
| 478 | + * @param string $direction |
|
| 479 | + * @param boolean $dryRun |
|
| 480 | + */ |
|
| 467 | 481 | private function dispatchEvent($eventName, $direction, $dryRun) |
| 468 | 482 | { |
| 469 | 483 | $this->configuration->dispatchEvent($eventName, new MigrationsVersionEventArgs( |
@@ -100,7 +100,7 @@ |
||
| 100 | 100 | * properly, so I had to violate LoD here (so please, let's find a way to solve it on v2). |
| 101 | 101 | */ |
| 102 | 102 | return $this->configuration->getQueryWriter() |
| 103 | - ->write($path, $direction, $sql); |
|
| 103 | + ->write($path, $direction, $sql); |
|
| 104 | 104 | } |
| 105 | 105 | |
| 106 | 106 | /** |
@@ -42,7 +42,7 @@ |
||
| 42 | 42 | |
| 43 | 43 | /** |
| 44 | 44 | * Transform the recursiveIterator result array of array into the expected array of migration file |
| 45 | - * @param iterable|string[][] $iteratorFilesMatch |
|
| 45 | + * @param \RegexIterator $iteratorFilesMatch |
|
| 46 | 46 | * @return string[] |
| 47 | 47 | */ |
| 48 | 48 | private function getMatches($iteratorFilesMatch) |
@@ -12,6 +12,9 @@ |
||
| 12 | 12 | /** @var \Closure|null */ |
| 13 | 13 | private $closure; |
| 14 | 14 | |
| 15 | + /** |
|
| 16 | + * @param \Closure $closure |
|
| 17 | + */ |
|
| 15 | 18 | public function __construct(?\Closure $closure = null) |
| 16 | 19 | { |
| 17 | 20 | if ($closure === null) { |
@@ -160,7 +160,7 @@ |
||
| 160 | 160 | |
| 161 | 161 | /** |
| 162 | 162 | * @param string $versionAlias |
| 163 | - * @return bool|string |
|
| 163 | + * @return false|string |
|
| 164 | 164 | */ |
| 165 | 165 | private function getVersionNameFromAlias($versionAlias, OutputInterface $output, Configuration $configuration) |
| 166 | 166 | { |
@@ -69,11 +69,17 @@ |
||
| 69 | 69 | } |
| 70 | 70 | } |
| 71 | 71 | |
| 72 | + /** |
|
| 73 | + * @param string $title |
|
| 74 | + */ |
|
| 72 | 75 | private function writeStatusInfosLineAligned(OutputInterface $output, $title, $value) |
| 73 | 76 | { |
| 74 | 77 | $output->writeln(' <comment>>></comment> ' . $title . ': ' . str_repeat(' ', 50 - strlen($title)) . $value); |
| 75 | 78 | } |
| 76 | 79 | |
| 80 | + /** |
|
| 81 | + * @param \Doctrine\DBAL\Migrations\Version[] $migrations |
|
| 82 | + */ |
|
| 77 | 83 | private function showVersions($migrations, Configuration $configuration, OutputInterface $output) |
| 78 | 84 | { |
| 79 | 85 | $migratedVersions = $configuration->getMigratedVersions(); |
@@ -27,6 +27,10 @@ discard block |
||
| 27 | 27 | */ |
| 28 | 28 | private $configuration; |
| 29 | 29 | |
| 30 | + /** |
|
| 31 | + * @param Connection $connection |
|
| 32 | + * @param Configuration $configuration |
|
| 33 | + */ |
|
| 30 | 34 | public function __construct(?Connection $connection = null, ?Configuration $configuration = null) |
| 31 | 35 | { |
| 32 | 36 | $this->connection = $connection; |
@@ -76,6 +80,9 @@ discard block |
||
| 76 | 80 | } |
| 77 | 81 | |
| 78 | 82 | |
| 83 | + /** |
|
| 84 | + * @param string $config |
|
| 85 | + */ |
|
| 79 | 86 | private function configExists($config) |
| 80 | 87 | { |
| 81 | 88 | return file_exists($config); |