mirror of
https://github.com/nextcloud/server.git
synced 2026-06-11 17:52:02 -04:00
The diff can be checked using: git diff --ignore-all-space --ignore-blank-lines To see only the changes not related to blank lines. Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
33 lines
554 B
PHP
33 lines
554 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
/**
|
|
* SPDX-FileCopyrightText: 2022 Nextcloud GmbH and Nextcloud contributors
|
|
* SPDX-License-Identifier: AGPL-3.0-only
|
|
*/
|
|
|
|
namespace OC\DB;
|
|
|
|
use OCP\EventDispatcher\Event;
|
|
|
|
class MigratorExecuteSqlEvent extends Event {
|
|
public function __construct(
|
|
private string $sql,
|
|
private int $current,
|
|
private int $max,
|
|
) {
|
|
}
|
|
|
|
public function getSql(): string {
|
|
return $this->sql;
|
|
}
|
|
|
|
public function getCurrentStep(): int {
|
|
return $this->current;
|
|
}
|
|
|
|
public function getMaxStep(): int {
|
|
return $this->max;
|
|
}
|
|
}
|