AppMigration.php
2 years ago
AppMigrationTemplate.php
2 years ago
Cli.php
2 weeks ago
DbMigration.php
6 months ago
DbMigrationTemplate.php
2 years ago
Logger.php
2 years ago
Migrator.php
1 year ago
MigratorException.php
2 years ago
Repository.php
2 years ago
Runner.php
2 years ago
Store.php
6 months ago
index.php
3 years ago
Logger.php
23 lines
| 1 | <?php declare(strict_types = 1); |
| 2 | |
| 3 | namespace MailPoet\Migrator; |
| 4 | |
| 5 | if (!defined('ABSPATH')) exit; |
| 6 | |
| 7 | |
| 8 | /** |
| 9 | * @phpstan-import-type MigrationDefinition from Migrator |
| 10 | */ |
| 11 | interface Logger { |
| 12 | /** @param MigrationDefinition[] $status */ |
| 13 | public function logBefore(array $status): void; |
| 14 | |
| 15 | /** @param MigrationDefinition $migration */ |
| 16 | public function logMigrationStarted(array $migration): void; |
| 17 | |
| 18 | /** @param MigrationDefinition $migration */ |
| 19 | public function logMigrationCompleted(array $migration): void; |
| 20 | |
| 21 | public function logAfter(): void; |
| 22 | } |
| 23 |