diff --git a/templates/Manager/migration_template.php b/templates/Manager/migration_template.php index fda682b20..d5f61188d 100644 --- a/templates/Manager/migration_template.php +++ b/templates/Manager/migration_template.php @@ -9,23 +9,46 @@ */ class { + /** + * @var string + */ public $comment = ''; + /** + * @param \Propel\Generator\Manager\MigrationManager $manager + * + * @return null|false|void + */ public function preUp(MigrationManager $manager) { // add the pre-migration code here } + /** + * @param \Propel\Generator\Manager\MigrationManager $manager + * + * @return null|false|void + */ public function postUp(MigrationManager $manager) { // add the post-migration code here } + /** + * @param \Propel\Generator\Manager\MigrationManager $manager + * + * @return null|false|void + */ public function preDown(MigrationManager $manager) { // add the pre-migration code here } + /** + * @param \Propel\Generator\Manager\MigrationManager $manager + * + * @return null|false|void + */ public function postDown(MigrationManager $manager) { // add the post-migration code here @@ -37,7 +60,7 @@ public function postDown(MigrationManager $manager) * @return array list of the SQL strings to execute for the Up migration * the keys being the datasources */ - public function getUpSQL() + public function getUpSQL(): array { $sql): ?> = <<< 'EOT' @@ -58,7 +81,7 @@ public function getUpSQL() * @return array list of the SQL strings to execute for the Down migration * the keys being the datasources */ - public function getDownSQL() + public function getDownSQL(): array { $sql): ?> = <<< 'EOT'