geno/wp-content/plugins/mailpoet/lib/Migrator/Logger.php

23 lines
541 B
PHP
Raw Normal View History

2024-02-01 17:24:18 +05:30
<?php declare(strict_types = 1);
namespace MailPoet\Migrator;
if (!defined('ABSPATH')) exit;
/**
* @phpstan-import-type MigrationDefinition from Migrator
*/
interface Logger {
/** @param MigrationDefinition[] $status */
public function logBefore(array $status): void;
/** @param MigrationDefinition $migration */
public function logMigrationStarted(array $migration): void;
/** @param MigrationDefinition $migration */
public function logMigrationCompleted(array $migration): void;
public function logAfter(): void;
}