Skip to content

Commit cfbd10f

Browse files
committed
Add PHPDoc blocks to AbstractMigration
1 parent 4eef7b0 commit cfbd10f

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

lib/Doctrine/Migrations/AbstractMigration.php

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,22 @@ public function isTransactional() : bool
6060
return true;
6161
}
6262

63+
/**
64+
* Description of this migration.
65+
*
66+
* @return string
67+
*/
6368
public function getDescription() : string
6469
{
6570
return '';
6671
}
6772

73+
/**
74+
* Warn with a message if some condition is met.
75+
*
76+
* @param bool $condition
77+
* @param string $message
78+
*/
6879
public function warnIf(bool $condition, string $message = 'Unknown Reason') : void
6980
{
7081
if (! $condition) {
@@ -155,6 +166,11 @@ public function getSql() : array
155166
return $this->plannedSql;
156167
}
157168

169+
/**
170+
* Write some debug information to the console.
171+
*
172+
* @param string $message
173+
*/
158174
protected function write(string $message) : void
159175
{
160176
$this->logger->notice($message, ['migration' => $this]);

0 commit comments

Comments
 (0)