0
0
mirror of https://github.com/nextcloud/server.git synced 2024-11-14 12:26:49 +00:00
nextcloud_server/lib/private/DB/MigratorExecuteSqlEvent.php
provokateurin 9836e9b164
chore(deps): Update nextcloud/coding-standard to v1.3.1
Signed-off-by: provokateurin <kate@provokateurin.de>
2024-09-19 14:21:20 +02:00

40 lines
665 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 {
private string $sql;
private int $current;
private int $max;
public function __construct(
string $sql,
int $current,
int $max,
) {
$this->sql = $sql;
$this->current = $current;
$this->max = $max;
}
public function getSql(): string {
return $this->sql;
}
public function getCurrentStep(): int {
return $this->current;
}
public function getMaxStep(): int {
return $this->max;
}
}